com.neovisionaries.android.opengl
Enum MinFilter

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

public enum MinFilter
extends Enum<MinFilter>

Filters for GL_TEXTURE_MIN_FILTER.

Author:
Takahiko Kawasaki
See Also:
Texture.setMinFilter(MinFilter), glTexParameter

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


LINEAR

public static final MinFilter LINEAR
GL_LINEAR.


NEAREST_MIPMAP_NEAREST

public static final MinFilter NEAREST_MIPMAP_NEAREST
GL_NEAREST_MIPMAP_NEAREST.


NEAREST_MIPMAP_LINEAR

public static final MinFilter NEAREST_MIPMAP_LINEAR
GL_NEAREST_MIPMAP_LINEAR.


LINEAR_MIPMAP_NEAREST

public static final MinFilter LINEAR_MIPMAP_NEAREST
LINEAR_MIPMAP_NEAREST.


LINEAR_MIPMAP_LINEAR

public static final MinFilter LINEAR_MIPMAP_LINEAR
LINEAR_MIPMAP_LINEAR.

Method Detail

values

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

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

valueOf

public static MinFilter 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 min filter.

Returns:
The integer representing this min filter.