Searched defs:gl (Results 1 - 25 of 29) sorted by relevance

12

/development/ndk/platforms/android-18/samples/gles3jni/src/com/android/gles3jni/
H A DGLES3JNIView.java47 public void onDrawFrame(GL10 gl) { argument
51 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
55 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DCube.java64 // Buffers to be passed to gl*Pointer() functions
89 public void draw(GL10 gl) argument
91 gl.glFrontFace(GL10.GL_CW);
92 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer);
93 gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer);
94 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer);
H A DCubeRenderer.java34 public void onDrawFrame(GL10 gl) { argument
41 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
47 gl.glMatrixMode(GL10.GL_MODELVIEW);
48 gl.glLoadIdentity();
49 gl.glTranslatef(0, 0, -3.0f);
50 gl.glRotatef(mAngle, 0, 1, 0);
51 gl.glRotatef(mAngle*0.25f, 1, 0, 0);
53 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
54 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
56 mCube.draw(gl);
66 onSurfaceChanged(GL10 gl, int width, int height) argument
81 onSurfaceCreated(GL10 gl, EGLConfig config) argument
[all...]
H A DCompressedTextureActivity.java90 public void load(GL10 gl) { argument
112 public void load(GL10 gl) { argument
H A DTriangleRenderer.java46 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
52 gl.glDisable(GL10.GL_DITHER);
58 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
61 gl.glClearColor(.5f, .5f, .5f, 1);
62 gl.glShadeModel(GL10.GL_SMOOTH);
63 gl.glEnable(GL10.GL_DEPTH_TEST);
64 gl.glEnable(GL10.GL_TEXTURE_2D);
72 gl.glGenTextures(1, textures, 0);
75 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
77 gl
108 onDrawFrame(GL10 gl) argument
154 onSurfaceChanged(GL10 gl, int w, int h) argument
227 draw(GL10 gl) argument
[all...]
H A DFrameBufferObjectActivity.java60 public void onDrawFrame(GL10 gl) { argument
61 checkGLError(gl);
63 GL11ExtensionPack gl11ep = (GL11ExtensionPack) gl;
65 drawOffscreenImage(gl, mSurfaceWidth, mSurfaceHeight);
68 drawOffscreenImage(gl, mFramebufferWidth, mFramebufferHeight);
70 drawOnscreen(gl, mSurfaceWidth, mSurfaceHeight);
75 gl.glClearColor(1,0,0,0);
76 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
80 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
81 checkGLError(gl);
87 onSurfaceCreated(GL10 gl, EGLConfig config) argument
98 drawOnscreen(GL10 gl, int width, int height) argument
136 drawOffscreenImage(GL10 gl, int width, int height) argument
174 createTargetTexture(GL10 gl, int width, int height) argument
194 createFrameBuffer(GL10 gl, int width, int height, int targetTextureId) argument
226 checkIfContextSupportsFrameBufferObject(GL10 gl) argument
237 checkIfContextSupportsExtension(GL10 gl, String extension) argument
249 checkGLError(GL gl) argument
[all...]
H A DStaticTriangleRenderer.java57 void load(GL10 gl); argument
74 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
118 mTextureLoader.load(gl);
121 public void onDrawFrame(GL10 gl) { argument
147 GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
164 mTriangle.draw(gl);
167 public void onSurfaceChanged(GL10 gl, int w, int h) { argument
188 public void load(GL10 gl) { argument
210 // Buffers to be passed to gl*Pointer() functions
259 public void draw(GL10 gl) { argument
[all...]
H A DTouchRotateActivity.java111 public void onDrawFrame(GL10 gl) { argument
118 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
124 gl.glMatrixMode(GL10.GL_MODELVIEW);
125 gl.glLoadIdentity();
126 gl.glTranslatef(0, 0, -3.0f);
127 gl.glRotatef(mAngleX, 0, 1, 0);
128 gl.glRotatef(mAngleY, 1, 0, 0);
130 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
131 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
133 mCube.draw(gl);
136 onSurfaceChanged(GL10 gl, int width, int height) argument
151 onSurfaceCreated(GL10 gl, EGLConfig config) argument
[all...]
H A DCubeMapActivity.java57 public void onDrawFrame(GL10 gl) { argument
58 checkGLError(gl);
60 gl.glClearColor(0,0,1,0);
64 gl.glClearColor(1,0,0,0);
66 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
67 gl.glEnable(GL10.GL_DEPTH_TEST);
68 gl.glMatrixMode(GL10.GL_MODELVIEW);
69 gl.glLoadIdentity();
71 GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
72 gl
107 onSurfaceChanged(GL10 gl, int width, int height) argument
117 onSurfaceCreated(GL10 gl, EGLConfig config) argument
134 generateCubeMap(GL10 gl, int[] resourceIds) argument
165 generateTorusGrid(GL gl, int uSteps, int vSteps, float majorRadius, float minorRadius) argument
196 checkIfContextSupportsCubeMap(GL10 gl) argument
207 checkIfContextSupportsExtension(GL10 gl, String extension) argument
336 createBufferObjects(GL gl) argument
361 draw(GL10 gl) argument
383 checkGLError(GL gl) argument
[all...]
H A DMatrixPaletteRenderer.java181 public void createBufferObjects(GL gl) { argument
184 GL11 gl11 = (GL11) gl;
204 public void draw(GL10 gl) { argument
205 GL11 gl11 = (GL11) gl;
206 GL11Ext gl11Ext = (GL11Ext) gl;
208 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
214 gl.glEnableClientState(GL11Ext.GL_MATRIX_INDEX_ARRAY_OES);
215 gl.glEnableClientState(GL11Ext.GL_WEIGHT_ARRAY_OES);
222 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
223 gl
234 onSurfaceCreated(GL10 gl, EGLConfig config) argument
298 onDrawFrame(GL10 gl) argument
368 onSurfaceChanged(GL10 gl, int w, int h) argument
383 generateWeightedGrid(GL gl) argument
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
H A DMatrixGrabber.java30 * @param gl
32 public void getCurrentState(GL10 gl) { argument
33 getCurrentProjection(gl);
34 getCurrentModelView(gl);
40 * @param gl
42 public void getCurrentModelView(GL10 gl) { argument
43 getMatrix(gl, GL10.GL_MODELVIEW, mModelView);
49 * @param gl
51 public void getCurrentProjection(GL10 gl) { argument
52 getMatrix(gl, GL1
55 getMatrix(GL10 gl, int mode, float[] mat) argument
[all...]
H A DGrid.java115 public void draw(GL10 gl, boolean useTexture) { argument
116 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
117 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mVertexBuffer);
120 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
121 gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTexCoordBuffer);
122 gl.glEnable(GL10.GL_TEXTURE_2D);
124 gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
125 gl.glDisable(GL10.GL_TEXTURE_2D);
128 gl.glDrawElements(GL10.GL_TRIANGLES, mIndexCount,
130 gl
[all...]
H A DNumericSprite.java29 public void initialize(GL10 gl, Paint paint) { argument
34 mLabelMaker.initialize(gl);
35 mLabelMaker.beginAdding(gl);
38 mLabelId[i] = mLabelMaker.add(gl, digit, paint);
41 mLabelMaker.endAdding(gl);
44 public void shutdown(GL10 gl) { argument
45 mLabelMaker.shutdown(gl);
67 public void draw(GL10 gl, float x, float y, argument
70 mLabelMaker.beginDrawing(gl, viewWidth, viewHeight);
74 mLabelMaker.draw(gl,
[all...]
H A DProjector.java59 * @param gl
61 public void getCurrentProjection(GL10 gl) { argument
62 mGrabber.getCurrentProjection(gl);
69 * @param gl
71 public void getCurrentModelView(GL10 gl) { argument
72 mGrabber.getCurrentModelView(gl);
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
H A DSquare.java71 * @param gl - The OpenGL ES context in which to draw this shape.
73 public void draw(GL10 gl) { argument
75 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
78 gl.glColor4f( // set color
81 gl.glVertexPointer( // point to vertex data:
84 gl.glDrawElements( // draw shape:
91 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
H A DTriangle.java64 * @param gl - The OpenGL ES context in which to draw this shape.
66 public void draw(GL10 gl) { argument
68 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
71 gl.glColor4f( // set color:
74 gl.glVertexPointer( // point to vertex data:
77 gl.glDrawArrays( // draw shape:
83 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
H A DMyGLRenderer.java40 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
42 gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
49 public void onDrawFrame(GL10 gl) { argument
52 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
55 gl.glMatrixMode(GL10.GL_MODELVIEW);
56 gl.glLoadIdentity(); // reset the matrix to its default state
59 GLU.gluLookAt(gl, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
62 mSquare.draw(gl);
71 gl.glRotatef(mAngle, 0.0f, 0.0f, 1.0f);
74 mTriangle.draw(gl);
78 onSurfaceChanged(GL10 gl, int width, int height) argument
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DGLWorld.java72 public void draw(GL10 gl) argument
78 gl.glFrontFace(GL10.GL_CW);
79 gl.glShadeModel(GL10.GL_FLAT);
80 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer);
81 gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer);
82 gl.glDrawElements(GL10.GL_TRIANGLES, mIndexCount, GL10.GL_UNSIGNED_SHORT, mIndexBuffer);
H A DKubeRenderer.java39 public void onDrawFrame(GL10 gl) { argument
52 gl.glClearColor(0.5f,0.5f,0.5f,1);
53 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
59 gl.glMatrixMode(GL10.GL_MODELVIEW);
60 gl.glLoadIdentity();
61 gl.glTranslatef(0, 0, -3.0f);
62 gl.glScalef(0.5f, 0.5f, 0.5f);
63 gl.glRotatef(mAngle, 0, 1, 0);
64 gl.glRotatef(mAngle*0.25f, 1, 0, 0);
66 gl
76 onSurfaceChanged(GL10 gl, int width, int height) argument
99 onSurfaceCreated(GL10 gl, EGLConfig config) argument
[all...]
/development/ndk/platforms/android-4/samples/san-angeles/src/com/example/SanAngeles/
H A DDemoActivity.java115 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
119 public void onSurfaceChanged(GL10 gl, int w, int h) { argument
120 //gl.glViewport(0, 0, w, h);
124 public void onDrawFrame(GL10 gl) { argument
/development/samples/ApiDemos/src/com/example/android/apis/os/
H A DRotationVectorDemo.java122 public void onDrawFrame(GL10 gl) { argument
124 gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
127 gl.glMatrixMode(GL10.GL_MODELVIEW);
128 gl.glLoadIdentity();
129 gl.glTranslatef(0, 0, -3.0f);
130 gl.glMultMatrixf(mRotationMatrix, 0);
133 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
134 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
136 mCube.draw(gl);
139 public void onSurfaceChanged(GL10 gl, in argument
149 onSurfaceCreated(GL10 gl, EGLConfig config) argument
203 draw(GL10 gl) argument
[all...]
/development/samples/Compass/src/com/example/android/compass/
H A DCompassActivity.java92 public void onDrawFrame(GL10 gl) { argument
99 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
105 gl.glMatrixMode(GL10.GL_MODELVIEW);
106 gl.glLoadIdentity();
107 gl.glTranslatef(0, 0, -2);
117 gl.glMultMatrixf(mR, 0);
119 //gl.glMultMatrixf(mI, 0);
121 gl.glVertexPointer(3, GL_FLOAT, 0, mVertexBuffer);
122 gl.glColorPointer(4, GL_FLOAT, 0, mColorBuffer);
123 gl
126 onSurfaceChanged(GL10 gl, int width, int height) argument
141 onSurfaceCreated(GL10 gl, EGLConfig config) argument
[all...]
/development/samples/HelloEffects/src/com/example/android/mediafx/
H A DHelloEffects.java256 public void onDrawFrame(GL10 gl) { argument
273 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
280 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
/development/apps/OBJViewer/com/android/objviewer/
H A DOBJViewer.java144 private void init(GL10 gl) { argument
149 gl.glEnable(gl.GL_DEPTH_TEST);
151 gl.glDisable(gl.GL_SCISSOR_TEST);
154 gl.glEnable(gl.GL_DITHER);
156 gl.glShadeModel(gl.GL_SMOOTH);
158 gl
[all...]
/development/ndk/platforms/android-5/samples/hello-gl2/src/com/android/gl2jni/
H A DGL2JNIView.java327 public void onDrawFrame(GL10 gl) { argument
331 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
335 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument

Completed in 257 milliseconds

12