public class Texture extends Dimension implements TexturableData, Native
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alpha |
protected ByteBuffer |
data |
protected Format |
format |
protected int |
id |
protected InternalFormat |
internalFormat |
static org.slf4j.Logger |
LOGGER |
protected Filter |
magFilter |
protected Filter |
minFilter |
protected Type |
type |
INVALID_ID| Constructor and Description |
|---|
Texture(BufferedImage image) |
Texture(BufferedImage image,
Dimension dimension) |
Texture(Dimension dimension) |
Texture(Dimension dimension,
Filter minFilter,
Filter magFilter,
InternalFormat internalFormat,
Format format,
boolean alpha) |
Texture(Dimension dimension,
Type type,
Filter minFilter,
Filter magFilter,
InternalFormat internalFormat,
Format format,
boolean alpha,
ByteBuffer data) |
Texture(TexturableData data) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getData()
The main image data
|
Dimension |
getDimension()
Width & Height
|
Format |
getFormat()
Texture Format
|
int |
getID()
Returns the corresponding ID,
-1 indicates, no ID has been set
|
InternalFormat |
getInternalFormat()
Internal Format
|
Filter |
getMagFilter()
MagFilter to use
|
Filter |
getMinFilter()
MinFilter to use
|
Type |
getType()
The Texture Type
|
boolean |
hasAlpha()
Has the image Alpha
|
void |
setID(int id)
internal use only
|
factor2, fromBufferedImage, getHeight, getWidth, setHeight, setWidthpublic static final org.slf4j.Logger LOGGER
protected int id
protected Type type
protected Filter minFilter
protected Filter magFilter
protected InternalFormat internalFormat
protected Format format
protected boolean alpha
protected ByteBuffer data
public Texture(Dimension dimension, Type type, Filter minFilter, Filter magFilter, InternalFormat internalFormat, Format format, boolean alpha, ByteBuffer data)
public Texture(Dimension dimension, Filter minFilter, Filter magFilter, InternalFormat internalFormat, Format format, boolean alpha)
public Texture(Dimension dimension)
public Texture(BufferedImage image)
public Texture(BufferedImage image, Dimension dimension)
public Texture(TexturableData data)
public int getID()
Nativepublic Type getType()
TexturableDatagetType in interface TexturableDatapublic Filter getMinFilter()
TexturableDatagetMinFilter in interface TexturableDatapublic Filter getMagFilter()
TexturableDatagetMagFilter in interface TexturableDatapublic Format getFormat()
TexturableDatagetFormat in interface TexturableDatapublic InternalFormat getInternalFormat()
TexturableDatagetInternalFormat in interface TexturableDatapublic Dimension getDimension()
getDimension in interface TexturableDatapublic boolean hasAlpha()
hasAlpha in interface TexturableDatapublic ByteBuffer getData()
getData in interface TexturableDataCopyright © 2014. All rights reserved.