Public Member Functions | |
void | bind () |
void | draw (int primitiveType, int offset, int numVertices) |
void | drawFull (int primitiveType, int offset, int numVertices) |
void | setIndices (short[] indices, int offset, int length) |
void | setVertices (float[] vertices, int offset, int length) |
void | unbind () |
Vertices (GL10 gl, int maxVertices, int maxIndices, boolean hasColor, boolean hasTexCoords, boolean hasNormals) | |
Vertices (GL10 gl, int maxVertices, int maxIndices, boolean hasColor, boolean hasTexCoords, boolean hasNormals, boolean use3D) | |
Public Attributes | |
int | numIndices |
int | numVertices |
final int | positionCnt |
final int | vertexSize |
final int | vertexStride |
Package Functions | |
void | setVtxColor (int vtxIdx, float r, float g, float b, float a) |
void | setVtxColor (int vtxIdx, float r, float g, float b) |
void | setVtxColor (int vtxIdx, float a) |
void | setVtxNormal (int vtxIdx, float x, float y, float z) |
void | setVtxPosition (int vtxIdx, float x, float y) |
void | setVtxPosition (int vtxIdx, float x, float y, float z) |
void | setVtxTexCoords (int vtxIdx, float u, float v) |
Package Attributes | |
final GL10 | gl |
final boolean | hasColor |
final boolean | hasNormals |
final boolean | hasTexCoords |
final ShortBuffer | indices |
final int[] | tmpBuffer |
final IntBuffer | vertices |
Static Package Attributes | |
static final int | COLOR_CNT = 4 |
static final int | INDEX_SIZE = Short.SIZE / 8 |
static final int | NORMAL_CNT = 3 |
static final int | POSITION_CNT_2D = 2 |
static final int | POSITION_CNT_3D = 3 |
static final int | TEXCOORD_CNT = 2 |
Definition at line 10 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
uk.co.blogspot.fractiousg.texample.Vertices.Vertices | ( | GL10 | gl, |
int | maxVertices, | ||
int | maxIndices, | ||
boolean | hasColor, | ||
boolean | hasTexCoords, | ||
boolean | hasNormals | ||
) | [inline] |
Definition at line 46 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
uk.co.blogspot.fractiousg.texample.Vertices.Vertices | ( | GL10 | gl, |
int | maxVertices, | ||
int | maxIndices, | ||
boolean | hasColor, | ||
boolean | hasTexCoords, | ||
boolean | hasNormals, | ||
boolean | use3D | ||
) | [inline] |
Definition at line 49 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.bind | ( | ) | [inline] |
Definition at line 113 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.draw | ( | int | primitiveType, |
int | offset, | ||
int | numVertices | ||
) | [inline] |
Definition at line 144 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.drawFull | ( | int | primitiveType, |
int | offset, | ||
int | numVertices | ||
) | [inline] |
Definition at line 177 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setIndices | ( | short[] | indices, |
int | offset, | ||
int | length | ||
) | [inline] |
Definition at line 101 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVertices | ( | float[] | vertices, |
int | offset, | ||
int | length | ||
) | [inline] |
Definition at line 84 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxColor | ( | int | vtxIdx, |
float | r, | ||
float | g, | ||
float | b, | ||
float | a | ||
) | [inline, package] |
Definition at line 229 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxColor | ( | int | vtxIdx, |
float | r, | ||
float | g, | ||
float | b | ||
) | [inline, package] |
Definition at line 236 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxColor | ( | int | vtxIdx, |
float | a | ||
) | [inline, package] |
Definition at line 242 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxNormal | ( | int | vtxIdx, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline, package] |
Definition at line 251 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxPosition | ( | int | vtxIdx, |
float | x, | ||
float | y | ||
) | [inline, package] |
Definition at line 218 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxPosition | ( | int | vtxIdx, |
float | x, | ||
float | y, | ||
float | z | ||
) | [inline, package] |
Definition at line 223 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxTexCoords | ( | int | vtxIdx, |
float | u, | ||
float | v | ||
) | [inline, package] |
Definition at line 246 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
void uk.co.blogspot.fractiousg.texample.Vertices.unbind | ( | ) | [inline] |
Definition at line 159 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int uk.co.blogspot.fractiousg.texample.Vertices.COLOR_CNT = 4 [static, package] |
Definition at line 15 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final GL10 uk.co.blogspot.fractiousg.texample.Vertices.gl [package] |
Definition at line 23 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final boolean uk.co.blogspot.fractiousg.texample.Vertices.hasColor [package] |
Definition at line 24 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final boolean uk.co.blogspot.fractiousg.texample.Vertices.hasNormals [package] |
Definition at line 26 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final boolean uk.co.blogspot.fractiousg.texample.Vertices.hasTexCoords [package] |
Definition at line 25 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int uk.co.blogspot.fractiousg.texample.Vertices.INDEX_SIZE = Short.SIZE / 8 [static, package] |
Definition at line 19 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final ShortBuffer uk.co.blogspot.fractiousg.texample.Vertices.indices [package] |
Definition at line 31 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int uk.co.blogspot.fractiousg.texample.Vertices.NORMAL_CNT = 3 [static, package] |
Definition at line 17 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
Definition at line 33 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
Definition at line 32 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int uk.co.blogspot.fractiousg.texample.Vertices.POSITION_CNT_2D = 2 [static, package] |
Definition at line 13 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int uk.co.blogspot.fractiousg.texample.Vertices.POSITION_CNT_3D = 3 [static, package] |
Definition at line 14 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
Definition at line 27 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int uk.co.blogspot.fractiousg.texample.Vertices.TEXCOORD_CNT = 2 [static, package] |
Definition at line 16 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final int [] uk.co.blogspot.fractiousg.texample.Vertices.tmpBuffer [package] |
Definition at line 34 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
Definition at line 29 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
Definition at line 28 of file uk/co/blogspot/fractiousg/texample/Vertices.java.
final IntBuffer uk.co.blogspot.fractiousg.texample.Vertices.vertices [package] |
Definition at line 30 of file uk/co/blogspot/fractiousg/texample/Vertices.java.