Home
last modified time | relevance | path

Searched refs:vertexBuffer (Results 1 – 6 of 6) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLVertex.java56 public void put(IntBuffer vertexBuffer, IntBuffer colorBuffer) { in put() argument
57 vertexBuffer.put(toFixed(x)); in put()
58 vertexBuffer.put(toFixed(y)); in put()
59 vertexBuffer.put(toFixed(z)); in put()
73 public void update(IntBuffer vertexBuffer, M4 transform) { in update() argument
75 vertexBuffer.position(index * 3); in update()
78 vertexBuffer.put(toFixed(x)); in update()
79 vertexBuffer.put(toFixed(y)); in update()
80 vertexBuffer.put(toFixed(z)); in update()
84 vertexBuffer.put(toFixed(temp.x)); in update()
[all …]
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DTriangle.java29 private final FloatBuffer vertexBuffer; field in Triangle
54 vertexBuffer = bb.asFloatBuffer(); in Triangle()
56 vertexBuffer.put(triangleCoords); in Triangle()
58 vertexBuffer.position(0); in Triangle()
76 GL10.GL_FLOAT, 0, vertexBuffer); in draw()
DSquare.java30 private final FloatBuffer vertexBuffer; field in Square
54 vertexBuffer = bb.asFloatBuffer(); in Square()
55 vertexBuffer.put(squareCoords); in Square()
56 vertexBuffer.position(0); in Square()
83 GL10.GL_FLOAT, 0, vertexBuffer); in draw()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DTriangle.java48 private final FloatBuffer vertexBuffer; field in Triangle
79 vertexBuffer = bb.asFloatBuffer(); in Triangle()
81 vertexBuffer.put(triangleCoords); in Triangle()
83 vertexBuffer.position(0); in Triangle()
118 vertexStride, vertexBuffer); in draw()
DSquare.java49 private final FloatBuffer vertexBuffer; field in Square
79 vertexBuffer = bb.asFloatBuffer(); in Square()
80 vertexBuffer.put(squareCoords); in Square()
81 vertexBuffer.position(0); in Square()
126 vertexStride, vertexBuffer); in draw()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DGles2ColoredTriangleList.java260 public void bind(float[] mvpMatrix, FloatBuffer vertexBuffer, float[] color) { in bind() argument
270 false /* normalized */, VERTEX_STRIDE, vertexBuffer); in bind()