com.neovisionaries.android.opengl
Enum MagFilter

java.lang.Object
  extended by java.lang.Enum<MagFilter>
      extended by com.neovisionaries.android.opengl.MagFilter
All Implemented Interfaces:
Serializable, Comparable<MagFilter>

public enum MagFilter
extends Enum<MagFilter>

Filters for GL_TEXTURE_MAG_FILTER.

Author:
Takahiko Kawasaki
See Also:
Texture.setMagFilter(MagFilter), glTexParameter

Enum Constant Summary
LINEAR
          GL_LINEAR.
NEAREST
          GL_NEAREST.
 
Method Summary
 int getFilter()
          Get the integer representing this mag filter.
static MagFilter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MagFilter[] 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

NEAREST

public static final MagFilter NEAREST
GL_NEAREST.


LINEAR

public static final MagFilter LINEAR
GL_LINEAR.

Method Detail

values

public static MagFilter[] 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 (MagFilter c : MagFilter.values())
    System.out.println(c);

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

valueOf

public static MagFilter valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFilter

public int getFilter()
Get the integer representing this mag filter.

Returns:
The integer representing this mag filter.