public static final class Texture.Config
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Texture.Config |
DEFAULT
Default managed texture configuration: managed, no mipmaps, no repat, linear filters.
|
int |
magFilter
The filter to use when this texture is scaled:
GL_LINEAR or GL_NEAREST. |
boolean |
managed
Whether or not texture's lifecycle is automatically managed via reference counting.
|
int |
minFilter
The filter to use when this texture is scaled:
GL_LINEAR or GL_NEAREST. |
boolean |
mipmaps
Whether texture has mipmaps generated.
|
boolean |
repeatX
Whether texture is configured to repeat in this direction.
|
boolean |
repeatY
Whether texture is configured to repeat in this direction.
|
static Texture.Config |
UNMANAGED
Default unmanaged texture configuration: unmanaged, no mipmaps, no repat, linear filters.
|
| Constructor and Description |
|---|
Config(boolean managed,
boolean repeatX,
boolean repeatY,
int minFilter,
int magFilter,
boolean mipmaps) |
| Modifier and Type | Method and Description |
|---|---|
Texture.Config |
repeat(boolean repeatX,
boolean repeatY)
Returns a copy of this config with
repeatX, repeatY set as specified. |
java.lang.String |
toString() |
int |
toTexHeight(int sourceHeight)
Returns
sourceHeight rounded up to a POT if necessary. |
int |
toTexWidth(int sourceWidth)
Returns
sourceWidth rounded up to a POT if necessary. |
public static Texture.Config DEFAULT
public static Texture.Config UNMANAGED
public final boolean managed
ImageLayer, it should be reference counted unless you
are doing something special. Otherwise you can decide whether you want to use the reference
counting mechanism or not.public final boolean repeatX
public final boolean repeatY
public final int minFilter
GL_LINEAR or GL_NEAREST.public final int magFilter
GL_LINEAR or GL_NEAREST.public final boolean mipmaps
public Config(boolean managed,
boolean repeatX,
boolean repeatY,
int minFilter,
int magFilter,
boolean mipmaps)
public Texture.Config repeat(boolean repeatX, boolean repeatY)
repeatX, repeatY set as specified.public int toTexWidth(int sourceWidth)
sourceWidth rounded up to a POT if necessary.public int toTexHeight(int sourceHeight)
sourceHeight rounded up to a POT if necessary.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.