com.partnersoft.preferences.model
Enum TextureFiltering

java.lang.Object
  extended by java.lang.Enum<TextureFiltering>
      extended by com.partnersoft.preferences.model.TextureFiltering
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TextureFiltering>

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

TextureFiltering is a technique used to scale textures outside of their native resolution (larger or smaller).

This is an OpenGL-specific feature.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Enum Constant Summary
BILINEAR
          Bilinear filtering looks at the four closest pixels and merges them to generate a result pixel.
NONE
          No filtering.
TRILINEAR
          Trilinear filtering uses not just the four closest pixels, but also does the same between the closest two mipmaps.
 
Method Summary
static TextureFiltering forName(java.lang.String name)
           
 java.lang.String getName()
           
static TextureFiltering valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TextureFiltering[] 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

NONE

public static final TextureFiltering NONE
No filtering. Generally this uses a closest-pixel approximation.


BILINEAR

public static final TextureFiltering BILINEAR
Bilinear filtering looks at the four closest pixels and merges them to generate a result pixel.


TRILINEAR

public static final TextureFiltering TRILINEAR
Trilinear filtering uses not just the four closest pixels, but also does the same between the closest two mipmaps. It is only valid if mipmaps are available; otherwise it's the same as bilinear.

Method Detail

values

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

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

valueOf

public static TextureFiltering 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

forName

public static TextureFiltering forName(java.lang.String name)

getName

public java.lang.String getName()