Home
last modified time | relevance | path

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

/cts/tests/tests/openglperf/src/android/openglperf/cts/
DSphere.java52 public Sphere(int nSlices, float x, float y, float z, float r, int numIndexBuffers) { in Sphere() argument
54 int iMax = nSlices + 1; in Sphere()
58 throw new RuntimeException("nSlices " + nSlices + " too big for vertex"); in Sphere()
60 mTotalIndices = nSlices * nSlices * 6; in Sphere()
61 float angleStepI = ((float) Math.PI / nSlices); in Sphere()
62 float angleStepJ = ((2.0f * (float) Math.PI) / nSlices); in Sphere()
95 vLineBuffer[vertexBase + 3] = (float) j / (float) nSlices; in Sphere()
96 vLineBuffer[vertexBase + 4] = (1.0f - i) / (float)nSlices; in Sphere()
104 for (int i = 0; i < nSlices; i++) { in Sphere()
105 for (int j = 0; j < nSlices; j++) { in Sphere()