Public Member Functions | Public Attributes | Package Functions | Package Attributes | Static Package Attributes
uk.co.blogspot.fractiousg.texample.Vertices Class Reference

List of all members.

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

Detailed Description

Definition at line 10 of file uk/co/blogspot/fractiousg/texample/Vertices.java.


Constructor & Destructor Documentation

uk.co.blogspot.fractiousg.texample.Vertices.Vertices ( GL10  gl,
int  maxVertices,
int  maxIndices,
boolean  hasColor,
boolean  hasTexCoords,
boolean  hasNormals 
) [inline]
uk.co.blogspot.fractiousg.texample.Vertices.Vertices ( GL10  gl,
int  maxVertices,
int  maxIndices,
boolean  hasColor,
boolean  hasTexCoords,
boolean  hasNormals,
boolean  use3D 
) [inline]

Member Function Documentation

void uk.co.blogspot.fractiousg.texample.Vertices.draw ( int  primitiveType,
int  offset,
int  numVertices 
) [inline]
void uk.co.blogspot.fractiousg.texample.Vertices.drawFull ( int  primitiveType,
int  offset,
int  numVertices 
) [inline]
void uk.co.blogspot.fractiousg.texample.Vertices.setIndices ( short[]  indices,
int  offset,
int  length 
) [inline]
void uk.co.blogspot.fractiousg.texample.Vertices.setVertices ( float[]  vertices,
int  offset,
int  length 
) [inline]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxColor ( int  vtxIdx,
float  r,
float  g,
float  b,
float  a 
) [inline, package]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxColor ( int  vtxIdx,
float  r,
float  g,
float  b 
) [inline, package]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxColor ( int  vtxIdx,
float  a 
) [inline, package]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxNormal ( int  vtxIdx,
float  x,
float  y,
float  z 
) [inline, package]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxPosition ( int  vtxIdx,
float  x,
float  y 
) [inline, package]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxPosition ( int  vtxIdx,
float  x,
float  y,
float  z 
) [inline, package]
void uk.co.blogspot.fractiousg.texample.Vertices.setVtxTexCoords ( int  vtxIdx,
float  u,
float  v 
) [inline, package]

Member Data Documentation

final int uk.co.blogspot.fractiousg.texample.Vertices.INDEX_SIZE = Short.SIZE / 8 [static, package]

The documentation for this class was generated from the following file:


android_core
Author(s): Damon Kohler
autogenerated on Thu Jun 6 2019 21:20:07