/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/ |
MatrixGrabber.java | 19 import javax.microedition.khronos.opengles.GL10; 32 public void getCurrentState(GL10 gl) { 42 public void getCurrentModelView(GL10 gl) { 43 getMatrix(gl, GL10.GL_MODELVIEW, mModelView); 51 public void getCurrentProjection(GL10 gl) { 52 getMatrix(gl, GL10.GL_PROJECTION, mProjection); 55 private void getMatrix(GL10 gl, int mode, float[] mat) {
|
SpriteTextRenderer.java | 27 import javax.microedition.khronos.opengles.GL10; 53 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 59 gl.glDisable(GL10.GL_DITHER); 65 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, 66 GL10.GL_FASTEST); 69 gl.glShadeModel(GL10.GL_SMOOTH); 70 gl.glEnable(GL10.GL_DEPTH_TEST); 71 gl.glEnable(GL10.GL_TEXTURE_2D); 82 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 84 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER [all...] |
LabelMaker.java | 29 import javax.microedition.khronos.opengles.GL10; 80 public void initialize(GL10 gl) { 85 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 88 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, 89 GL10.GL_NEAREST); 90 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, 91 GL10.GL_NEAREST); 93 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
TriangleRenderer.java | 27 import javax.microedition.khronos.opengles.GL10; 46 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 52 gl.glDisable(GL10.GL_DITHER); 58 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, 59 GL10.GL_FASTEST); 62 gl.glShadeModel(GL10.GL_SMOOTH); 63 gl.glEnable(GL10.GL_DEPTH_TEST); 64 gl.glEnable(GL10.GL_TEXTURE_2D); 75 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 77 gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER [all...] |
CubeRenderer.java | 20 import javax.microedition.khronos.opengles.GL10; 34 public void onDrawFrame(GL10 gl) { 41 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 47 gl.glMatrixMode(GL10.GL_MODELVIEW); 53 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 54 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 66 public void onSurfaceChanged(GL10 gl, int width, int height) { 76 gl.glMatrixMode(GL10.GL_PROJECTION); 81 public void onSurfaceCreated(GL10 gl, EGLConfig config) [all...] |
FrameBufferObjectActivity.java | 21 import javax.microedition.khronos.opengles.GL10; 60 public void onDrawFrame(GL10 gl) { 76 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 80 public void onSurfaceChanged(GL10 gl, int width, int height) { 87 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 98 private void drawOnscreen(GL10 gl, int width, int height) { 101 gl.glMatrixMode(GL10.GL_PROJECTION); 106 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT) [all...] |
TouchRotateActivity.java | 20 import javax.microedition.khronos.opengles.GL10; 111 public void onDrawFrame(GL10 gl) { 118 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 124 gl.glMatrixMode(GL10.GL_MODELVIEW); 130 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 131 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 136 public void onSurfaceChanged(GL10 gl, int width, int height) { 146 gl.glMatrixMode(GL10.GL_PROJECTION); 151 public void onSurfaceCreated(GL10 gl, EGLConfig config) [all...] |
MatrixPaletteRenderer.java | 28 import javax.microedition.khronos.opengles.GL10; 204 public void draw(GL10 gl) { 208 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 211 gl11.glVertexPointer(3, GL10.GL_FLOAT, VERTEX_SIZE, 0); 212 gl11.glTexCoordPointer(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_TEXTURE_BUFFER_INDEX_OFFSET * FLOAT_SIZE); 217 gl11Ext.glWeightPointerOES(2, GL10.GL_FLOAT, VERTEX_SIZE, VERTEX_WEIGHT_BUFFER_INDEX_OFFSET * FLOAT_SIZE); 218 gl11Ext.glMatrixIndexPointerOES(2, GL10.GL_UNSIGNED_BYTE, VERTEX_SIZE, VERTEX_PALETTE_INDEX_OFFSET ); 221 gl11.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, 0); 222 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/ |
CubeRenderer.java | 22 import javax.microedition.khronos.opengles.GL10; 46 public void onDrawFrame(GL10 gl) { 53 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 59 gl.glMatrixMode(GL10.GL_MODELVIEW); 65 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 66 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 88 public void onSurfaceChanged(GL10 gl, int width, int height) { 98 gl.glMatrixMode(GL10.GL_PROJECTION); 104 public void onSurfaceCreated(GL10 gl, EGLConfig config) [all...] |
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
CubeRenderer.java | 20 import javax.microedition.khronos.opengles.GL10; 44 public void onDrawFrame(GL10 gl) { 51 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 57 gl.glMatrixMode(GL10.GL_MODELVIEW); 63 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 64 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 85 public void onSurfaceChanged(GL10 gl, int width, int height) { 95 gl.glMatrixMode(GL10.GL_PROJECTION); 100 public void onSurfaceCreated(GL10 gl, EGLConfig config) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
KubeRenderer.java | 22 import javax.microedition.khronos.opengles.GL10; 39 public void onDrawFrame(GL10 gl) { 53 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 59 gl.glMatrixMode(GL10.GL_MODELVIEW); 67 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 68 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 69 gl.glEnable(GL10.GL_CULL_FACE); 70 gl.glShadeModel(GL10.GL_SMOOTH); 71 gl.glEnable(GL10.GL_DEPTH_TEST) [all...] |
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
TriangleRenderer.java | 25 import javax.microedition.khronos.opengles.GL10; 37 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 43 gl.glDisable(GL10.GL_DITHER); 49 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, 50 GL10.GL_FASTEST); 53 gl.glShadeModel(GL10.GL_SMOOTH); 56 public void onDrawFrame(GL10 gl) { 62 gl.glDisable(GL10.GL_DITHER); 70 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/ |
GLArrowSensorTestRenderer.java | 36 import javax.microedition.khronos.opengles.GL10; 74 public void onDrawFrame(GL10 gl) { 76 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE); 77 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 78 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); 79 gl.glActiveTexture(GL10.GL_TEXTURE0); 80 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); 81 gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT) [all...] |
GLRotationGuideRenderer.java | 25 import javax.microedition.khronos.opengles.GL10; 64 public void onDrawFrame(GL10 gl) { 66 gl.glMatrixMode(GL10.GL_MODELVIEW); 77 public void onSurfaceChanged(GL10 gl, int width, int height) { 79 gl.glMatrixMode(GL10.GL_PROJECTION); 90 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 91 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 92 gl.glEnable(GL10.GL_LIGHTING); 93 gl.glEnable(GL10.GL_LIGHT0); 94 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, new float[] {0.75f, 0.75f, 0.75f, 1f}, 0) [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
TextureTestRenderer.java | 31 import javax.microedition.khronos.opengles.GL10; 80 public void onDrawFrame(GL10 gl) { 82 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 84 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, 85 GL10.GL_REPLACE); 88 gl.glMatrixMode(GL10.GL_MODELVIEW); 94 gl.glActiveTexture(GL10.GL_TEXTURE0); 95 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
OpenGLSystem.java | 19 import javax.microedition.khronos.opengles.GL10; 30 private static GL10 sGL; 39 public OpenGLSystem(GL10 gl) { 43 public static final void setGL(GL10 gl) { 49 public static final GL10 getGL() { 67 ((GL11) sGL).glTexParameteriv(GL10.GL_TEXTURE_2D, GL11Ext.GL_TEXTURE_CROP_RECT_OES,
|
TextureLibrary.java | 22 import javax.microedition.khronos.opengles.GL10; 82 public Texture loadTexture(Context context, GL10 gl, int resourceID) { 89 public void loadAll(Context context, GL10 gl) { 98 public void deleteAll(GL10 gl) { 107 if (error != GL10.GL_NO_ERROR) { 111 assert error == GL10.GL_NO_ERROR; 127 protected Texture loadBitmap(Context context, GL10 gl, Texture texture) { 135 if (error != GL10.GL_NO_ERROR) { 139 assert error == GL10.GL_NO_ERROR; 143 gl.glBindTexture(GL10.GL_TEXTURE_2D, textureName) [all...] |
GameRenderer.java | 24 import javax.microedition.khronos.opengles.GL10; 80 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 85 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST); 88 gl.glShadeModel(GL10.GL_FLAT); 89 gl.glDisable(GL10.GL_DEPTH_TEST); 90 gl.glEnable(GL10.GL_TEXTURE_2D); 96 gl.glDisable(GL10.GL_DITHER); 97 gl.glDisable(GL10.GL_LIGHTING); 99 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE) [all...] |
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
MyGLRenderer.java | 19 import javax.microedition.khronos.opengles.GL10; 40 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 49 public void onDrawFrame(GL10 gl) { 52 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 55 gl.glMatrixMode(GL10.GL_MODELVIEW); 78 public void onSurfaceChanged(GL10 gl, int width, int height) { 85 gl.glMatrixMode(GL10.GL_PROJECTION); // set matrix to projection mode
|
Square.java | 23 import javax.microedition.khronos.opengles.GL10; 73 public void draw(GL10 gl) { 75 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 83 GL10.GL_FLOAT, 0, vertexBuffer); 85 GL10.GL_TRIANGLES, 86 drawOrder.length, GL10.GL_UNSIGNED_SHORT, 91 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
RotationVectorDemo.java | 23 import javax.microedition.khronos.opengles.GL10; 122 public void onDrawFrame(GL10 gl) { 124 gl.glClear(GL10.GL_COLOR_BUFFER_BIT); 127 gl.glMatrixMode(GL10.GL_MODELVIEW); 133 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); 134 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); 139 public void onSurfaceChanged(GL10 gl, int width, int height) { 144 gl.glMatrixMode(GL10.GL_PROJECTION); 149 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 151 gl.glDisable(GL10.GL_DITHER) [all...] |
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/ |
ClearActivity.java | 25 import javax.microedition.khronos.opengles.GL10; 70 public void onSurfaceCreated(GL10 gl, EGLConfig config) { 74 public void onSurfaceChanged(GL10 gl, int w, int h) { 76 gl.glMatrixMode(GL10.GL_PROJECTION); 89 gl.glMatrixMode(GL10.GL_MODELVIEW); 94 public void onDrawFrame(GL10 gl) { 95 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); 113 gl.glDisable(GL10.GL_DITHER); 115 gl.glLightfv(GL10.GL_LIGHT0, GL10.GL_AMBIENT, lightAmbient, 0) [all...] |
/cts/tests/tests/opengl/src/android/opengl/cts/ |
RendererBase.java | 20 import javax.microedition.khronos.opengles.GL10; 47 public void onSurfaceChanged(GL10 gl, int width, int height) { 59 public void onDrawFrame(GL10 gl) { 69 public void doOnDrawFrame(GL10 gl) {
|
/frameworks/base/opengl/java/android/opengl/ |
GLWrapperBase.java | 20 import javax.microedition.khronos.opengles.GL10; 31 implements GL, GL10, GL10Ext, GL11, GL11Ext, GL11ExtensionPack { 33 mgl = (GL10) gl; 48 protected GL10 mgl;
|
/frameworks/native/opengl/tests/testPauseResume/src/com/android/test/ |
TestView.java | 44 import javax.microedition.khronos.opengles.GL10; 71 public void onDrawFrame(GL10 gl) { 75 public void onSurfaceChanged(GL10 gl, int width, int height) { 79 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
|