Home
last modified time | relevance | path

Searched refs:FLOAT_SIZE (Results 1 – 3 of 3) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DGrid.java46 final int FLOAT_SIZE = 4; in Grid() local
48 mVertexBuffer = ByteBuffer.allocateDirect(FLOAT_SIZE * size * 3) in Grid()
50 mTexCoordBuffer = ByteBuffer.allocateDirect(FLOAT_SIZE * size * 2) in Grid()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DMatrixPaletteRenderer.java60 final static int FLOAT_SIZE = 4; field in MatrixPaletteRenderer.Grid
69 final static int VERTEX_SIZE = 8 * FLOAT_SIZE;
72 final static int VERTEX_PALETTE_INDEX_OFFSET = 7 * FLOAT_SIZE;
167 mVertexBuffer.position(index * VERTEX_SIZE / FLOAT_SIZE); in set()
212 ….glTexCoordPointer(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_TEXTURE_BUFFER_INDEX_OFFSET * FLOAT_SIZE); in draw()
217 …glWeightPointerOES(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_WEIGHT_BUFFER_INDEX_OFFSET * FLOAT_SIZE); in draw()
DCubeMapActivity.java232 final static int FLOAT_SIZE = 4; field in CubeMapActivity.Grid
239 final static int VERTEX_SIZE = 6 * FLOAT_SIZE;
327 mVertexBuffer.position(index * VERTEX_SIZE / FLOAT_SIZE); in set()
371 … gl11.glNormalPointer(GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_NORMAL_BUFFER_INDEX_OFFSET * FLOAT_SIZE); in draw()