public interface Texture
Modifier and Type | Method and Description |
---|---|
void |
bind()
Bind the GL context to a texture
|
float |
getHeight()
Get the height of the physical texture
|
int |
getImageHeight()
Get the height of the original image
|
int |
getImageWidth()
Get the width of the original image
|
byte[] |
getTextureData()
Get the pixel data from the card for this texture
|
int |
getTextureHeight()
Get the height of the actual texture
|
int |
getTextureID()
Get the OpenGL texture ID for this texture
|
java.lang.String |
getTextureRef()
Get the reference from which this texture was loaded
|
int |
getTextureWidth()
Get the width of the actual texture
|
float |
getWidth()
Get the width of the physical texture
|
boolean |
hasAlpha()
Check if the texture has alpha
|
void |
release()
Destroy the texture reference
|
void |
setTextureFilter(int textureFilter)
Apply a given texture filter to the texture
|
boolean hasAlpha()
java.lang.String getTextureRef()
void bind()
int getImageHeight()
int getImageWidth()
float getHeight()
float getWidth()
int getTextureHeight()
int getTextureWidth()
void release()
int getTextureID()
byte[] getTextureData()
void setTextureFilter(int textureFilter)
textureFilter
- The texture filter to apply (GL_LINEAR, GL_NEAREST, etc..)