Searched refs:tmb (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | SimpleAppRS.java | 69 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, 3, in setupGeometry() local 73 tmb.setTexture(0.0f, 1.0f).addVertex(-1.0f, 1.0f, 0.0f); in setupGeometry() 74 tmb.setTexture(0.0f, 0.0f).addVertex(-1.0f, -1.0f, 0.0f); in setupGeometry() 75 tmb.setTexture(1.0f, 0.0f).addVertex(1.0f, -1.0f, 0.0f); in setupGeometry() 76 tmb.setTexture(1.0f, 1.0f).addVertex(1.0f, 1.0f, 0.0f); in setupGeometry() 78 tmb.addTriangle(0, 1, 2); in setupGeometry() 79 tmb.addTriangle(2, 3, 0); in setupGeometry() 80 mSimpleMesh = tmb.create(true); in setupGeometry()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | UiTest.java | 158 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getSingleMesh() local 162 tmb.setTexture(0, 0); in getSingleMesh() 163 tmb.addVertex(-1.0f * xOffset, -1.0f * yOffset); in getSingleMesh() 164 tmb.setTexture(1, 0); in getSingleMesh() 165 tmb.addVertex(xOffset, -1.0f * yOffset); in getSingleMesh() 166 tmb.setTexture(1, 1); in getSingleMesh() 167 tmb.addVertex(xOffset, yOffset); in getSingleMesh() 168 tmb.setTexture(0, 1); in getSingleMesh() 169 tmb.addVertex(-1.0f * xOffset, yOffset); in getSingleMesh() 170 tmb.addTriangle(0, 3, 1); in getSingleMesh() [all …]
|
D | MeshTest.java | 107 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getMbyNMesh() local 116 tmb.setTexture((float)x % 2, (float)y % 2); in getMbyNMesh() 117 tmb.addVertex(xOffset, yOffset); in getMbyNMesh() 127 tmb.addTriangle(curV, belowV, curV + 1); in getMbyNMesh() 128 tmb.addTriangle(belowV, belowV + 1, curV + 1); in getMbyNMesh() 132 return tmb.create(true); in getMbyNMesh()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | SceneManager.java | 433 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getScreenAlignedQuad() local 436 tmb.setTexture(0.0f, 1.0f).addVertex(-1.0f, 1.0f, 1.0f); in getScreenAlignedQuad() 437 tmb.setTexture(0.0f, 0.0f).addVertex(-1.0f, -1.0f, 1.0f); in getScreenAlignedQuad() 438 tmb.setTexture(1.0f, 0.0f).addVertex(1.0f, -1.0f, 1.0f); in getScreenAlignedQuad() 439 tmb.setTexture(1.0f, 1.0f).addVertex(1.0f, 1.0f, 1.0f); in getScreenAlignedQuad() 441 tmb.addTriangle(0, 1, 2); in getScreenAlignedQuad() 442 tmb.addTriangle(2, 3, 0); in getScreenAlignedQuad() 444 mQuad = tmb.create(true); in getScreenAlignedQuad()
|
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/ |
D | RsRenderStatesRS.java | 142 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, in getMbyNMesh() local 151 tmb.setTexture(normalizedX, normalizedY); in getMbyNMesh() 152 tmb.addVertex(xOffset, yOffset); in getMbyNMesh() 162 tmb.addTriangle(curV, belowV, curV + 1); in getMbyNMesh() 163 tmb.addTriangle(belowV, belowV + 1, curV + 1); in getMbyNMesh() 167 return tmb.create(true); in getMbyNMesh()
|