Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DGrid.java58 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount) in Grid()
82 mIndexBuffer.put(i++, a); in Grid()
83 mIndexBuffer.put(i++, b); in Grid()
84 mIndexBuffer.put(i++, c); in Grid()
86 mIndexBuffer.put(i++, b); in Grid()
87 mIndexBuffer.put(i++, c); in Grid()
88 mIndexBuffer.put(i++, d); in Grid()
129 GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
135 private CharBuffer mIndexBuffer; field in Grid
DSpriteTextRenderer.java302 mIndexBuffer = ibb.asShortBuffer(); in Triangle()
317 mIndexBuffer.put((short) i); in Triangle()
322 mIndexBuffer.position(0); in Triangle()
331 GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
346 private ShortBuffer mIndexBuffer; field in Triangle
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
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
DMatrixPaletteRenderer.java83 private CharBuffer mIndexBuffer; field in MatrixPaletteRenderer.Grid
113 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount) in Grid()
137 mIndexBuffer.put(i++, a); in Grid()
138 mIndexBuffer.put(i++, c); in Grid()
139 mIndexBuffer.put(i++, b); in Grid()
141 mIndexBuffer.put(i++, b); in Grid()
142 mIndexBuffer.put(i++, c); in Grid()
143 mIndexBuffer.put(i++, d); in Grid()
195 mIndexBuffer.position(0); in createBufferObjects()
196 …gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer,… in createBufferObjects()
[all …]
DCubeMapActivity.java251 private CharBuffer mIndexBuffer; field in CubeMapActivity.Grid
281 mIndexBuffer = ByteBuffer.allocateDirect(CHAR_SIZE * indexCount) in Grid()
305 mIndexBuffer.put(i++, a); in Grid()
306 mIndexBuffer.put(i++, c); in Grid()
307 mIndexBuffer.put(i++, b); in Grid()
309 mIndexBuffer.put(i++, b); in Grid()
310 mIndexBuffer.put(i++, c); in Grid()
311 mIndexBuffer.put(i++, d); in Grid()
351 mIndexBuffer.position(0); in createBufferObjects()
352 …gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer,… in createBufferObjects()
[all …]
DStaticTriangleRenderer.java228 mIndexBuffer = ibb.asShortBuffer(); in Triangle()
251 mIndexBuffer.put((short) i); in Triangle()
256 mIndexBuffer.position(0); in Triangle()
265 GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
272 private ShortBuffer mIndexBuffer; field in StaticTriangleRenderer.Triangle
DTriangleRenderer.java196 mIndexBuffer = ibb.asShortBuffer(); in Triangle()
219 mIndexBuffer.put((short) i); in Triangle()
224 mIndexBuffer.position(0); in Triangle()
233 GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
240 private ShortBuffer mIndexBuffer; field in Triangle
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLWorld.java46 mIndexBuffer = bb.asShortBuffer(); in generate()
57 shape.putIndices(mIndexBuffer); in generate()
76 mIndexBuffer.position(0); in draw()
82 gl.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
97 private ShortBuffer mIndexBuffer; field in GLWorld
/development/samples/ApiDemos/src/com/example/android/apis/os/
DRotationVectorDemo.java160 private ByteBuffer mIndexBuffer; field in RotationVectorDemo.MyRenderer.Cube
198 mIndexBuffer = ByteBuffer.allocateDirect(indices.length); in Cube()
199 mIndexBuffer.put(indices); in Cube()
200 mIndexBuffer.position(0); in Cube()
209 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer); in draw()
/development/samples/Compass/src/com/example/android/compass/
DCompassActivity.java53 private ByteBuffer mIndexBuffer; field in CompassActivity
123 gl.glDrawElements(GL_LINES, 6, GL_UNSIGNED_BYTE, mIndexBuffer); in onDrawFrame()
200 mIndexBuffer = ByteBuffer.allocateDirect(indices.length); in onSurfaceCreated()
201 mIndexBuffer.put(indices); in onSurfaceCreated()
202 mIndexBuffer.position(0); in onSurfaceCreated()