public class DrawableSurfaceTexture extends java.lang.Object implements Drawable, SurfaceTexture
Modifier and Type | Field and Description |
---|---|
Color |
color |
SurfaceTextureProgram |
program |
Sector |
sector |
Matrix3 |
texCoordMatrix |
Texture |
texture |
Constructor and Description |
---|
DrawableSurfaceTexture() |
Modifier and Type | Method and Description |
---|---|
boolean |
bindTexture(DrawContext dc) |
void |
draw(DrawContext dc) |
Sector |
getSector() |
Matrix3 |
getTexCoordTransform() |
static DrawableSurfaceTexture |
obtain(Pool<DrawableSurfaceTexture> pool) |
void |
recycle() |
DrawableSurfaceTexture |
set(SurfaceTextureProgram program,
Sector sector,
Texture texture,
Matrix3 texCoordMatrix) |
public SurfaceTextureProgram program
public Sector sector
public Color color
public Texture texture
public Matrix3 texCoordMatrix
public static DrawableSurfaceTexture obtain(Pool<DrawableSurfaceTexture> pool)
public DrawableSurfaceTexture set(SurfaceTextureProgram program, Sector sector, Texture texture, Matrix3 texCoordMatrix)
public void draw(DrawContext dc)
public Sector getSector()
getSector
in interface SurfaceTexture
public Matrix3 getTexCoordTransform()
getTexCoordTransform
in interface SurfaceTexture
public boolean bindTexture(DrawContext dc)
bindTexture
in interface SurfaceTexture