Searched refs:gl (Results 1 - 25 of 104) sorted by relevance

12345

/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCubeRenderer.java44 public void onDrawFrame(GL10 gl) { argument
51 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
57 gl.glMatrixMode(GL10.GL_MODELVIEW);
58 gl.glLoadIdentity();
59 gl.glTranslatef(0, 0, -3.0f);
60 gl.glRotatef(mAngle, 0, 1, 0);
61 gl.glRotatef(mAngle*0.25f, 1, 0, 0);
63 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
64 gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
66 gl
85 onSurfaceChanged(GL10 gl, int width, int height) argument
100 onSurfaceCreated(GL10 gl, EGLConfig config) argument
[all...]
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);
/frameworks/native/opengl/include/GLES/
H A Degl.h3 * applications. Several early implementations included gl.h
13 #include <GLES/gl.h>
/frameworks/rs/driver/
H A DrsdGL.cpp26 #include <GLES/gl.h>
131 ALOGE(" EGL ver %i %i", dc->gl.egl.majorVersion, dc->gl.egl.minorVersion);
132 ALOGE(" EGL context %p surface %p, Display=%p", dc->gl.egl.context, dc->gl.egl.surface,
133 dc->gl.egl.display);
134 ALOGE(" GL vendor: %s", dc->gl.gl.vendor);
135 ALOGE(" GL renderer: %s", dc->gl.gl
[all...]
H A DrsdFrameBufferObj.cpp131 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_WIDTH, &width);
132 eglQuerySurface(dc->gl.egl.display, dc->gl.egl.surface, EGL_HEIGHT, &height);
150 if(dc->gl.wndSurface != dc->gl.currentWndSurface) {
151 rsdGLSetInternalSurface(rsc, dc->gl.wndSurface);
/frameworks/base/opengl/java/android/opengl/
H A DGLWrapperBase.java32 public GLWrapperBase(GL gl) { argument
33 mgl = (GL10) gl;
34 if (gl instanceof GL10Ext) {
35 mgl10Ext = (GL10Ext) gl;
37 if (gl instanceof GL11) {
38 mgl11 = (GL11) gl;
40 if (gl instanceof GL11Ext) {
41 mgl11Ext = (GL11Ext) gl;
43 if (gl instanceof GL11ExtensionPack) {
44 mgl11ExtensionPack = (GL11ExtensionPack) gl;
[all...]
H A DGLDebugHelper.java50 * @param gl the existing GL interface. Must implement GL and GL10. May
79 public static GL wrap(GL gl, int configFlags, Writer log) { argument
81 gl = new GLErrorWrapper(gl, configFlags);
86 gl = new GLLogWrapper(gl, log, logArgumentNames);
88 return gl;
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
H A DTriangleRenderer.java37 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
43 gl.glDisable(GL10.GL_DITHER);
49 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
52 gl.glClearColor(.5f, .5f, .5f, 1);
53 gl.glShadeModel(GL10.GL_SMOOTH);
56 public void onDrawFrame(GL10 gl) { argument
62 gl.glDisable(GL10.GL_DITHER);
70 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
76 gl.glMatrixMode(GL10.GL_MODELVIEW);
77 gl
91 onSurfaceChanged(GL10 gl, int w, int h) argument
154 draw(GL10 gl) argument
[all...]
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/
H A DClearActivity.java70 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
74 public void onSurfaceChanged(GL10 gl, int w, int h) { argument
76 gl.glMatrixMode(GL10.GL_PROJECTION);
77 gl.glLoadIdentity();
86 gl.glFrustumf(fl, fr, fb, ft, 1.0f, 2000.0f);
89 gl.glMatrixMode(GL10.GL_MODELVIEW);
90 gl.glLoadIdentity();
91 gl.glViewport(0, 0, w, h);
94 public void onDrawFrame(GL10 gl) { argument
95 gl
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DGLES10ExtcHeader.cpp24 #include <GLES/gl.h>
H A DGLES10cHeader.cpp24 #include <GLES/gl.h>
H A DGLES11ExtcHeader.cpp24 #include <GLES/gl.h>
H A DGLES11cHeader.cpp24 #include <GLES/gl.h>
/frameworks/native/opengl/libagl/
H A Darray.h27 namespace gl { namespace in namespace:android
H A Dprimitives.h28 namespace gl { namespace in namespace:android
H A DBufferObjectManager.h30 #include <GLES/gl.h>
40 namespace gl { namespace in namespace:android
62 gl::buffer_t const* bind(GLuint buffer);
63 int allocateStore(gl::buffer_t* bo, GLsizeiptr size, GLenum usage);
69 KeyedVector<GLuint, gl::buffer_t*> mBuffers;
H A Ddxt.h23 #include <GLES/gl.h>
H A Dlight.h34 namespace gl { namespace in namespace:android
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLId.java28 public void glDeleteTextures(GL11 gl, int n, int[] textures, int offset); argument
30 public void glDeleteBuffers(GL11 gl, int n, int[] buffers, int offset); argument
/frameworks/native/opengl/tests/testViewport/src/com/android/test/
H A DTestView.java186 public void createBufferObjects(GL gl) { argument
189 GL11 gl11 = (GL11) gl;
209 public void draw(GL10 gl) { argument
210 GL11 gl11 = (GL11) gl;
212 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);
219 gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
230 public void onDrawFrame(GL10 gl) { argument
231 gl.glClearColor(0,0,1,1);
232 gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
233 mGrid.draw(gl);
236 onSurfaceChanged(GL10 gl, int width, int height) argument
245 onSurfaceCreated(GL10 gl, EGLConfig config) argument
248 createGrid(GL10 gl, float w, float h) argument
[all...]
/frameworks/native/opengl/tests/testPauseResume/src/com/android/test/
H A DTestView.java71 public void onDrawFrame(GL10 gl) { argument
75 public void onSurfaceChanged(GL10 gl, int width, int height) { argument
79 public void onSurfaceCreated(GL10 gl, EGLConfig config) { argument
/frameworks/native/opengl/libs/tools/
H A Dgenfiles21 ./glapigen ../../include/GLES/gl.h > ../GLES_CM/gl_api.in
26 ./glentrygen ../../include/GLES/gl.h > /tmp/gl_entries.in
43 cat ../../include/GLES/gl.h \
/frameworks/native/opengl/libs/GLES2/
H A Dgl2.cpp46 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl; \
69 [api] "J"(__builtin_offsetof(gl_hooks_t, gl._api)) \
104 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \
138 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \
172 [api] "i" (__builtin_offsetof(gl_hooks_t, gl._api)) \
220 [API] "I"(__builtin_offsetof(gl_hooks_t, gl._api)) \
255 [API] "I"(__builtin_offsetof(gl_hooks_t, gl._api)) \
306 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl;
315 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl;
330 gl_hooks_t::gl_t const * const _c = &getGlThreadSpecific()->gl;
[all...]
/frameworks/base/libs/hwui/debug/
H A DGlesDriver.h23 #include <GLES/gl.h>
31 #include <gl/GrGLInterface.h>
38 // All the gl methods on GlesDriver have a trailing underscore
/frameworks/native/libs/gui/tests/
H A DTextureRenderer.h20 #include <GLES/gl.h>

Completed in 483 milliseconds

12345