Home
last modified time | relevance | path

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

/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DOpenGLWatchFaceService.java334 float[] coords = new float[]{ in getTickTriangleCoords() local
341 rotateCoords(coords, angleDegrees); in getTickTriangleCoords()
342 return coords; in getTickTriangleCoords()
353 private void rotateCoords(float[] coords, int angleDegrees) { in rotateCoords() argument
357 for (int i = 0; i < coords.length; i += 3) { in rotateCoords()
358 float x = coords[i]; in rotateCoords()
359 float y = coords[i + 1]; in rotateCoords()
360 coords[i] = (float) (cos * x - sin * y); in rotateCoords()
361 coords[i + 1] = (float) (sin * x + cos * y); in rotateCoords()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixTrackingGL.java696 public void glDrawTexfvOES(float[] coords, int offset) { in glDrawTexfvOES() argument
697 mgl11Ext.glDrawTexfvOES(coords, offset); in glDrawTexfvOES()
700 public void glDrawTexfvOES(FloatBuffer coords) { in glDrawTexfvOES() argument
701 mgl11Ext.glDrawTexfvOES(coords); in glDrawTexfvOES()
708 public void glDrawTexivOES(int[] coords, int offset) { in glDrawTexivOES() argument
709 mgl11Ext.glDrawTexivOES(coords, offset); in glDrawTexivOES()
712 public void glDrawTexivOES(IntBuffer coords) { in glDrawTexivOES() argument
713 mgl11Ext.glDrawTexivOES(coords); in glDrawTexivOES()
721 public void glDrawTexsvOES(short[] coords, int offset) { in glDrawTexsvOES() argument
722 mgl11Ext.glDrawTexsvOES(coords, offset); in glDrawTexsvOES()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DStaticTriangleRenderer.java231 float[] coords = { in Triangle() local
240 mFVertexBuffer.put(coords[i*3+j] * 2.0f); in Triangle()
246 mTexBuffer.put(coords[i*3+j] * 2.0f + 0.5f); in Triangle()
DTriangleRenderer.java199 float[] coords = { in Triangle() local
208 mFVertexBuffer.put(coords[i*3+j] * 2.0f); in Triangle()
214 mTexBuffer.put(coords[i*3+j] * 2.0f + 0.5f); in Triangle()
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
DTextureRenderer.java159 float[] coords = new float[] { x0, y0, x1, y0, x0, y1, x1, y1 }; in computeOutputVertices() local
160 mPosVertices.put(coords).position(0); in computeOutputVertices()
/development/samples/HelloEffects/src/com/example/android/mediafx/
DTextureRenderer.java159 float[] coords = new float[] { x0, y0, x1, y0, x0, y1, x1, y1 }; in computeOutputVertices() local
160 mPosVertices.put(coords).position(0); in computeOutputVertices()