public class Texture extends java.lang.Object implements RenderResource
Constructor and Description |
---|
Texture(android.graphics.Bitmap bitmap) |
Texture(int width,
int height,
int format) |
Modifier and Type | Method and Description |
---|---|
boolean |
bindTexture(DrawContext dc) |
int |
getByteCount() |
int |
getHeight() |
Matrix3 |
getTexCoordTransform() |
int |
getTextureName(DrawContext dc) |
int |
getWidth() |
void |
release(DrawContext dc)
Frees any resources associated with this instance.
|
public Texture(android.graphics.Bitmap bitmap)
public Texture(int width, int height, int format)
public int getWidth()
public int getHeight()
public int getByteCount()
public Matrix3 getTexCoordTransform()
public void release(DrawContext dc)
RenderResource
release
in interface RenderResource
dc
- the current draw contextpublic int getTextureName(DrawContext dc)
public boolean bindTexture(DrawContext dc)