Home
last modified time | relevance | path

Searched refs:bb (Results 1 – 7 of 7) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DGLWorld.java36 ByteBuffer bb = ByteBuffer.allocateDirect(mVertexList.size()*4*4); in generate() local
37 bb.order(ByteOrder.nativeOrder()); in generate()
38 mColorBuffer = bb.asIntBuffer(); in generate()
40 bb = ByteBuffer.allocateDirect(mVertexList.size()*4*3); in generate()
41 bb.order(ByteOrder.nativeOrder()); in generate()
42 mVertexBuffer = bb.asIntBuffer(); in generate()
44 bb = ByteBuffer.allocateDirect(mIndexCount*2); in generate()
45 bb.order(ByteOrder.nativeOrder()); in generate()
46 mIndexBuffer = bb.asShortBuffer(); in generate()
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DTriangle.java47 ByteBuffer bb = ByteBuffer.allocateDirect( in Triangle() local
51 bb.order(ByteOrder.nativeOrder()); in Triangle()
54 vertexBuffer = bb.asFloatBuffer(); in Triangle()
DSquare.java50 ByteBuffer bb = ByteBuffer.allocateDirect( in Square() local
53 bb.order(ByteOrder.nativeOrder()); in Square()
54 vertexBuffer = bb.asFloatBuffer(); in Square()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DTriangle.java72 ByteBuffer bb = ByteBuffer.allocateDirect( in Triangle() local
76 bb.order(ByteOrder.nativeOrder()); in Triangle()
79 vertexBuffer = bb.asFloatBuffer(); in Triangle()
DSquare.java75 ByteBuffer bb = ByteBuffer.allocateDirect( in Square() local
78 bb.order(ByteOrder.nativeOrder()); in Square()
79 vertexBuffer = bb.asFloatBuffer(); in Square()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DGles2ColoredTriangleList.java93 ByteBuffer bb = ByteBuffer.allocateDirect(triangleCoords.length * BYTES_PER_FLOAT); in Gles2ColoredTriangleList() local
96 bb.order(ByteOrder.nativeOrder()); in Gles2ColoredTriangleList()
99 mVertexBuffer = bb.asFloatBuffer(); in Gles2ColoredTriangleList()
/development/samples/MultiDisplay/src/com/example/android/multidisplay/wallpaper/
DSampleWallpaper.java202 int bb = random.nextInt(256);
207 int pb = Math.abs(bb - 128);
208 mBackgroundColor = Color.argb(255, br, bg, bb);