org.jagatoo.opengl.enums
Enum TextureMagFilter

java.lang.Object
  extended by java.lang.Enum<TextureMagFilter>
      extended by org.jagatoo.opengl.enums.TextureMagFilter
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextureMagFilter>

public enum TextureMagFilter
extends java.lang.Enum<TextureMagFilter>

Insert type comment here.


Enum Constant Summary
BILINEAR
          Performs a bilinear interpolation on the four nearest texels in the level 0 texture map.
POINT
          Selects the nearest texel in the level 0 texture map.
 
Field Summary
static TextureMagFilter FASTEST
          Uses the fastest available method for processing geometry
static TextureMagFilter NICEST
          Uses the nicest available method for processing geometry
 
Method Summary
 int toOpenGL()
           
static TextureMagFilter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextureMagFilter[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POINT

public static final TextureMagFilter POINT
Selects the nearest texel in the level 0 texture map.

Uses the value of the texture element that is nearest (in Manhattan distance) to the center of the pixel being textured.


BILINEAR

public static final TextureMagFilter BILINEAR
Performs a bilinear interpolation on the four nearest texels in the level 0 texture map.

Uses the weighted average of the four texture elements that are closest to the center of the pixel being textured. These can include border texture elements, depending on the values of GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T, and on the exact mapping.

Field Detail

FASTEST

public static final TextureMagFilter FASTEST
Uses the fastest available method for processing geometry


NICEST

public static final TextureMagFilter NICEST
Uses the nicest available method for processing geometry

Method Detail

values

public static TextureMagFilter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TextureMagFilter c : TextureMagFilter.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TextureMagFilter valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

toOpenGL

public final int toOpenGL()