@WorkerThread public class GlLayerRect extends GlLayerShape
GlLayerShape.DrawScript<T extends GlProgram>
Modifier and Type | Field and Description |
---|---|
protected float[] |
backgroundTextureCords |
protected float[] |
textureCords |
protected float[] |
vertexCords |
FILL_VIEWPORT_VERTICES_DATA
Constructor and Description |
---|
GlLayerRect() |
GlLayerRect(boolean hasStaticData) |
GlLayerRect(float[] verticesData,
boolean hasStaticData) |
Modifier and Type | Method and Description |
---|---|
void |
draw() |
void |
enable(GlProgram program) |
void |
setBackgroundTexture(MultiRect rect,
Transformation transformation,
int contextWidth,
int contextHeight) |
void |
setBackgroundTexture(MultiRect rect,
Transformation transformation,
MultiRect reference) |
void |
setShape(MultiRect rect,
Transformation transformation,
int contextWidth,
int contextHeight) |
void |
setTexture(MultiRect rect,
Transformation transformation,
int contextWidth,
int contextHeight) |
attach, disable, onRelease, updateVerticesData, updateVerticesData
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
protected float[] vertexCords
protected float[] textureCords
protected float[] backgroundTextureCords
public GlLayerRect(float[] verticesData, boolean hasStaticData)
public GlLayerRect()
public GlLayerRect(boolean hasStaticData)
public void setShape(MultiRect rect, @Nullable Transformation transformation, int contextWidth, int contextHeight)
public void setTexture(MultiRect rect, @Nullable Transformation transformation, int contextWidth, int contextHeight)
public void setBackgroundTexture(MultiRect rect, @Nullable Transformation transformation, int contextWidth, int contextHeight)
public void setBackgroundTexture(MultiRect rect, @Nullable Transformation transformation, MultiRect reference)
public void enable(GlProgram program)
enable
in class GlLayerShape
public void draw()