Searched refs:VERTEX_SIZE (Results 1 – 2 of 2) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | MatrixPaletteRenderer.java | 69 final static int VERTEX_SIZE = 8 * FLOAT_SIZE; field in MatrixPaletteRenderer.Grid 104 mVertexByteBuffer = ByteBuffer.allocateDirect(VERTEX_SIZE * size) in Grid() 167 mVertexBuffer.position(index * VERTEX_SIZE / FLOAT_SIZE); in set() 176 mVertexByteBuffer.position(index * VERTEX_SIZE + VERTEX_PALETTE_INDEX_OFFSET); in set() 211 gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); in draw() 212 …gl11.glTexCoordPointer(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_TEXTURE_BUFFER_INDEX_OFFSET * FLOAT_S… in draw() 217 …gl11Ext.glWeightPointerOES(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_WEIGHT_BUFFER_INDEX_OFFSET * FLO… in draw() 218 …gl11Ext.glMatrixIndexPointerOES(2, GL10.GL_UNSIGNED_BYTE, VERTEX_SIZE, VERTEX_PALETTE_INDEX_OFFSET… in draw()
|
D | CubeMapActivity.java | 239 final static int VERTEX_SIZE = 6 * FLOAT_SIZE; field in CubeMapActivity.Grid 272 mVertexByteBuffer = ByteBuffer.allocateDirect(VERTEX_SIZE * size) in Grid() 327 mVertexBuffer.position(index * VERTEX_SIZE / FLOAT_SIZE); in set() 368 gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); in draw() 371 … gl11.glNormalPointer(GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_NORMAL_BUFFER_INDEX_OFFSET * FLOAT_SIZE); in draw()
|