public class QuadMeshColorBuffer extends ColorBuffer
Modifier and Type | Field and Description |
---|---|
protected boolean |
mInvalidated |
protected int |
mNumCells |
protected float[] |
mValues |
static int |
NUM_CHANNEL_PER_COLOR |
static int |
NUM_COLOR_PER_CELL |
mBuffer
Constructor and Description |
---|
QuadMeshColorBuffer(int numCells) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GLState glState) |
int |
getNumCells() |
float[] |
getValues() |
void |
setAlphaAt(int index,
float alpha) |
void |
setColorAt(int index,
float r,
float g,
float b,
float a) |
void |
setColorAt(int index,
GLColor color)
Set color at the specified cell
|
void |
setNumCells(int numCells) |
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
#setColorAt(int, float...) |
setValues, unapply
dispose, setValues
public static final int NUM_CHANNEL_PER_COLOR
public static final int NUM_COLOR_PER_CELL
protected float[] mValues
protected int mNumCells
protected boolean mInvalidated
public void setNumCells(int numCells)
public int getNumCells()
public float[] getValues()
public void setColorAt(int index, GLColor color)
index
- color
- validate()
public void setColorAt(int index, float r, float g, float b, float a)
public void setAlphaAt(int index, float alpha)
public void setValuesAt(int index, int numCells, float... values)
public void setValuesAt(int index, int numCells, int srcOffset, float... values)
protected void validate()
#setColorAt(int, float...)
public void apply(GLState glState)
apply
in class ColorBuffer