Home
last modified time | relevance | path

Searched refs:mVertexByteBuffer (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DMatrixPaletteRenderer.java81 private ByteBuffer mVertexByteBuffer; field in MatrixPaletteRenderer.Grid
104 mVertexByteBuffer = ByteBuffer.allocateDirect(VERTEX_SIZE * size) in Grid()
106 mVertexBuffer = mVertexByteBuffer.asFloatBuffer(); in Grid()
176 mVertexByteBuffer.position(index * VERTEX_SIZE + VERTEX_PALETTE_INDEX_OFFSET); in set()
177 mVertexByteBuffer.put((byte) p0); in set()
178 mVertexByteBuffer.put((byte) p1); in set()
191 mVertexByteBuffer.position(0); in createBufferObjects()
192 …gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_S… in createBufferObjects()
200 mVertexByteBuffer = null; in createBufferObjects()
DCubeMapActivity.java249 private ByteBuffer mVertexByteBuffer; field in CubeMapActivity.Grid
272 mVertexByteBuffer = ByteBuffer.allocateDirect(VERTEX_SIZE * size) in Grid()
274 mVertexBuffer = mVertexByteBuffer.asFloatBuffer(); in Grid()
347 mVertexByteBuffer.position(0); in createBufferObjects()
348 …gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_S… in createBufferObjects()
356 mVertexByteBuffer = null; in createBufferObjects()