Searched refs:bb (Results 1 – 7 of 7) sorted by relevance
36 ByteBuffer bb = ByteBuffer.allocateDirect(mVertexList.size()*4*4); in generate() local37 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()
47 ByteBuffer bb = ByteBuffer.allocateDirect( in Triangle() local51 bb.order(ByteOrder.nativeOrder()); in Triangle()54 vertexBuffer = bb.asFloatBuffer(); in Triangle()
50 ByteBuffer bb = ByteBuffer.allocateDirect( in Square() local53 bb.order(ByteOrder.nativeOrder()); in Square()54 vertexBuffer = bb.asFloatBuffer(); in Square()
72 ByteBuffer bb = ByteBuffer.allocateDirect( in Triangle() local76 bb.order(ByteOrder.nativeOrder()); in Triangle()79 vertexBuffer = bb.asFloatBuffer(); in Triangle()
75 ByteBuffer bb = ByteBuffer.allocateDirect( in Square() local78 bb.order(ByteOrder.nativeOrder()); in Square()79 vertexBuffer = bb.asFloatBuffer(); in Square()
93 ByteBuffer bb = ByteBuffer.allocateDirect(triangleCoords.length * BYTES_PER_FLOAT); in Gles2ColoredTriangleList() local96 bb.order(ByteOrder.nativeOrder()); in Gles2ColoredTriangleList()99 mVertexBuffer = bb.asFloatBuffer(); in Gles2ColoredTriangleList()
202 int bb = random.nextInt(256);207 int pb = Math.abs(bb - 128);208 mBackgroundColor = Color.argb(255, br, bg, bb);