public class QuadMeshTextureCoordBuffer extends TextureCoordBuffer
Modifier and Type | Field and Description |
---|---|
protected boolean |
mInvalidated |
protected int |
mNumCells |
protected float |
mScaleX |
protected float |
mScaleY |
static int |
NUM_COORD_PER_CELL |
mValues
mBuffer
Constructor and Description |
---|
QuadMeshTextureCoordBuffer(int numCells) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GLState glState) |
int |
getNumCells() |
void |
setNumCells(int numCells) |
void |
setRectAt(int index,
float... values)
Sets a Rect at a specified index but doesn't apply untill applyValues() gets called
|
void |
setRectAt(int index,
float x,
float y,
float width,
float height)
Sets a Rect at a specified index but doesn't apply untill applyValues() gets called
|
void |
setRectFlipVerticalAt(int index,
float x,
float y,
float width,
float height) |
void |
setScale(float scaleX,
float scaleY) |
void |
setValuesAt(int index,
int numCells,
float... values) |
void |
setValuesAt(int index,
int numCells,
int srcOffset,
float... values) |
protected void |
validate()
Applies the values set by
setRectAt(int, float...) |
compare, flipHorizontal, flipVertical, getDefault, getDefault, getValues, rotateCCW, scale, scale, scale, setRectFlipVertical, setValues, toString, unapply
dispose
public static final int NUM_COORD_PER_CELL
protected int mNumCells
protected boolean mInvalidated
protected float mScaleX
protected float mScaleY
public void setNumCells(int numCells)
public int getNumCells()
public void setRectAt(int index, float x, float y, float width, float height)
index
- x
- y
- width
- height
- validate()
public void setRectFlipVerticalAt(int index, float x, float y, float width, float height)
public void setRectAt(int index, float... values)
index
- values
- validate()
public void setValuesAt(int index, int numCells, float... values)
public void setValuesAt(int index, int numCells, int srcOffset, float... values)
protected void validate()
setRectAt(int, float...)
public void setScale(float scaleX, float scaleY)
scaleX
- scaleY
- public void apply(GLState glState)
apply
in class TextureCoordBuffer