public class VertexArray
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COLOR_COUNT |
static int |
FLOAT_BYTE |
static int |
NORMAL_COUNT |
static int |
POSITION_COUNT |
static int |
TEXTURE_COOR_COUNT |
| 构造器和说明 |
|---|
VertexArray(float[] vertexData,
float[] colorData) |
VertexArray(float[] vertexData,
int vertexLength,
float[] colorData) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getLength() |
void |
setVertexAttribPointer(int dataOffset,
int attributeLocation,
int componentCount,
int stride) |
void |
setVertexColorAttribPointer(int dataOffset,
int attributeLocation,
int stride) |
void |
upDateBuffer(float[] vertexData,
int offset,
int count) |
void |
upDateColor(float red,
float green,
float blue,
float alpha) |
void |
upDateColor(float red,
float green,
float blue,
float alpha,
int factorIndex,
float factor) |
void |
upDateColor(int color) |
void |
upDateColorBuffer(float[] colorData,
int offset,
int count) |
public static final int POSITION_COUNT
public static final int COLOR_COUNT
public static final int FLOAT_BYTE
public static final int NORMAL_COUNT
public static final int TEXTURE_COOR_COUNT
public VertexArray(float[] vertexData,
float[] colorData)
public VertexArray(float[] vertexData,
int vertexLength,
float[] colorData)
public void setVertexAttribPointer(int dataOffset,
int attributeLocation,
int componentCount,
int stride)
public void setVertexColorAttribPointer(int dataOffset,
int attributeLocation,
int stride)
public void upDateBuffer(float[] vertexData,
int offset,
int count)
public void upDateColorBuffer(float[] colorData,
int offset,
int count)
public void upDateColor(int color)
public void upDateColor(float red,
float green,
float blue,
float alpha)
public int getLength()
public void upDateColor(float red,
float green,
float blue,
float alpha,
int factorIndex,
float factor)