@WorkerThread public class GlRect extends GlShape
Modifier and Type | Field and Description |
---|---|
protected float[] |
textureCords |
protected float[] |
vertexCords |
FILL_STAGE_VERTICES_CORDS, FILL_VIEWPORT_VERTICES_DATA, FILL_VIEWPORT_VERTICES_DATA_180_DEG_CORRECTION, FILL_VIEWPORT_VERTICES_DATA_270_DEG_CORRECTION, FILL_VIEWPORT_VERTICES_DATA_90_DEG_CORRECTION, GL_ORDER_TEXTURE_CORDS
Constructor and Description |
---|
GlRect() |
GlRect(boolean hasStaticData) |
GlRect(float[] verticesData,
boolean hasStaticData) |
GlRect(float[] verticesData,
float[] textureData,
boolean hasStaticData) |
Modifier and Type | Method and Description |
---|---|
void |
draw() |
void |
enable(GlProgram program) |
void |
setShape(MultiRect rect,
Transformation transformation,
int contextWidth,
int contextHeight) |
void |
setTexture(MultiRect rect,
Transformation transformation,
int contextWidth,
int contextHeight) |
attach, disable, normalizeToTextureCords, normalizeToTextureCords, normalizeToVertexCords, onRelease, updateVerticesData, updateVerticesData
createGlContext, destroyGlContext, finalize, markAsUnused, release, resetToDisplayViewPort, setDisplayViewPort
public GlRect(float[] verticesData, boolean hasStaticData)
public GlRect(float[] verticesData, float[] textureData, boolean hasStaticData)
public GlRect()
public GlRect(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 draw()