public class TextureOptions
extends java.lang.Object
TextureOptions defines with what parameters a ITexture is treated with by the hardware.
The MinFilter and MagFilter are responsible for the resulting render-quality.
I.e. GLES20.GL_NEAREST will look more pixelated than GLES20.GL_LINEAR, but will render a bit faster.
WrapT and WrapS define how TextureCoordinates that exceed the [0,1] limit are treated.
I.e. GLES20.GL_REPEAT will repeat the ITexture and GLES20.GL_CLAMP_TO_EDGE will stretch the outermost pixels of the ITexture.
(c) 2010 Nicolas Gramlich
(c) 2011 Zynga Inc.| Modifier and Type | Field and Description |
|---|---|
static TextureOptions |
BILINEAR |
static TextureOptions |
BILINEAR_PREMULTIPLYALPHA |
static TextureOptions |
DEFAULT |
int |
mMagFilter |
int |
mMinFilter |
boolean |
mPreMultiplyAlpha |
float |
mWrapS |
float |
mWrapT |
static TextureOptions |
NEAREST |
static TextureOptions |
NEAREST_PREMULTIPLYALPHA |
static TextureOptions |
REPEATING_BILINEAR |
static TextureOptions |
REPEATING_BILINEAR_PREMULTIPLYALPHA |
static TextureOptions |
REPEATING_NEAREST |
static TextureOptions |
REPEATING_NEAREST_PREMULTIPLYALPHA |
| Constructor and Description |
|---|
TextureOptions(int pMinFilter,
int pMagFilter,
int pWrapT,
int pWrapS,
boolean pPreMultiplyAlpha) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply() |
public static final TextureOptions NEAREST
public static final TextureOptions BILINEAR
public static final TextureOptions REPEATING_NEAREST
public static final TextureOptions REPEATING_BILINEAR
public static final TextureOptions NEAREST_PREMULTIPLYALPHA
public static final TextureOptions BILINEAR_PREMULTIPLYALPHA
public static final TextureOptions REPEATING_NEAREST_PREMULTIPLYALPHA
public static final TextureOptions REPEATING_BILINEAR_PREMULTIPLYALPHA
public static final TextureOptions DEFAULT
public final int mMagFilter
public final int mMinFilter
public final float mWrapT
public final float mWrapS
public final boolean mPreMultiplyAlpha