Home
last modified time | relevance | path

Searched refs:mVertexBuffer (Results 1 – 8 of 8) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLWorld.java42 mVertexBuffer = bb.asIntBuffer(); in generate()
51 vertex.put(mVertexBuffer, mColorBuffer); in generate()
68 vertex.update(mVertexBuffer, transform); in transformVertex()
75 mVertexBuffer.position(0); in draw()
80 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); in draw()
95 private IntBuffer mVertexBuffer; field in GLWorld
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCube.java74 mVertexBuffer = vbb.asIntBuffer(); in Cube()
75 mVertexBuffer.put(vertices); in Cube()
76 mVertexBuffer.position(0); in Cube()
92 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); in draw()
97 private IntBuffer mVertexBuffer; field in Cube
DMatrixPaletteRenderer.java82 private FloatBuffer mVertexBuffer; field in MatrixPaletteRenderer.Grid
106 mVertexBuffer = mVertexByteBuffer.asFloatBuffer(); in Grid()
167 mVertexBuffer.position(index * VERTEX_SIZE / FLOAT_SIZE); in set()
168 mVertexBuffer.put(x); in set()
169 mVertexBuffer.put(y); in set()
170 mVertexBuffer.put(z); in set()
171 mVertexBuffer.put(u); in set()
172 mVertexBuffer.put(v); in set()
173 mVertexBuffer.put(w0); in set()
174 mVertexBuffer.put(w1); in set()
[all …]
DCubeMapActivity.java250 private FloatBuffer mVertexBuffer; field in CubeMapActivity.Grid
274 mVertexBuffer = mVertexByteBuffer.asFloatBuffer(); in Grid()
327 mVertexBuffer.position(index * VERTEX_SIZE / FLOAT_SIZE); in set()
328 mVertexBuffer.put(x); in set()
329 mVertexBuffer.put(y); in set()
330 mVertexBuffer.put(z); in set()
331 mVertexBuffer.put(nx); in set()
332 mVertexBuffer.put(ny); in set()
333 mVertexBuffer.put(nz); in set()
355 mVertexBuffer = null; in createBufferObjects()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DGrid.java48 mVertexBuffer = ByteBuffer.allocateDirect(FLOAT_SIZE * size * 3) in Grid()
106 mVertexBuffer.put(posIndex, x); in set()
107 mVertexBuffer.put(posIndex + 1, y); in set()
108 mVertexBuffer.put(posIndex + 2, z); in set()
117 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mVertexBuffer); in draw()
133 private FloatBuffer mVertexBuffer; field in Grid
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DGles2ColoredTriangleList.java63 private final FloatBuffer mVertexBuffer; field in Gles2ColoredTriangleList
99 mVertexBuffer = bb.asFloatBuffer(); in Gles2ColoredTriangleList()
102 mVertexBuffer.put(triangleCoords); in Gles2ColoredTriangleList()
105 mVertexBuffer.position(0); in Gles2ColoredTriangleList()
117 mProgram.bind(mvpMatrix, mVertexBuffer, mColor); in draw()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DRotationVectorDemo.java158 private FloatBuffer mVertexBuffer; field in RotationVectorDemo.MyRenderer.Cube
188 mVertexBuffer = vbb.asFloatBuffer(); in Cube()
189 mVertexBuffer.put(vertices); in Cube()
190 mVertexBuffer.position(0); in Cube()
207 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mVertexBuffer); in draw()
/development/samples/Compass/src/com/example/android/compass/
DCompassActivity.java51 private FloatBuffer mVertexBuffer; field in CompassActivity
121 gl.glVertexPointer(3, GL_FLOAT, 0, mVertexBuffer); in onDrawFrame()
190 mVertexBuffer = vbb.asFloatBuffer(); in onSurfaceCreated()
191 mVertexBuffer.put(vertices); in onSurfaceCreated()
192 mVertexBuffer.position(0); in onSurfaceCreated()