public class ByteImage extends CommonTexturableData
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
alpha |
protected ByteBuffer |
data |
protected Dimension |
dimension |
| Constructor and Description |
|---|
ByteImage(ByteBuffer data,
boolean alpha,
Dimension dimension) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getData()
The main image data
|
Dimension |
getDimension()
Width & Height
|
boolean |
hasAlpha()
Has the image Alpha
|
void |
setAlpha(boolean alpha) |
void |
setData(ByteBuffer data) |
void |
setDimension(Dimension dimension) |
getFormat, getInternalFormat, getMagFilter, getMinFilter, getTypeprotected ByteBuffer data
protected boolean alpha
protected Dimension dimension
public ByteImage(ByteBuffer data, boolean alpha, Dimension dimension)
public ByteBuffer getData()
TexturableDatapublic void setData(ByteBuffer data)
public boolean hasAlpha()
TexturableDatapublic void setAlpha(boolean alpha)
public Dimension getDimension()
TexturableDatapublic void setDimension(Dimension dimension)
Copyright © 2014. All rights reserved.