Home
last modified time | relevance | path

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

/frameworks/native/opengl/tests/testViewport/src/com/android/test/
DTestView.java103 private CharBuffer mIndexBuffer; field in TestView.Grid
133 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount) in Grid()
157 mIndexBuffer.put(i++, a); in Grid()
158 mIndexBuffer.put(i++, c); in Grid()
159 mIndexBuffer.put(i++, b); in Grid()
161 mIndexBuffer.put(i++, b); in Grid()
162 mIndexBuffer.put(i++, c); in Grid()
163 mIndexBuffer.put(i++, d); in Grid()
200 mIndexBuffer.position(0); in createBufferObjects()
201 …gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer,… in createBufferObjects()
[all …]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
DCube.java84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length); in Cube()
85 mIndexBuffer.put(indices); in Cube()
86 mIndexBuffer.position(0); in Cube()
94 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer); in draw()
99 private ByteBuffer mIndexBuffer; field in Cube
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DTriangleRenderer.java130 mIndexBuffer = ibb.asShortBuffer(); in Triangle()
147 mIndexBuffer.put((short) i); in Triangle()
151 mIndexBuffer.position(0); in Triangle()
158 GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
164 private ShortBuffer mIndexBuffer; field in Triangle