Home
last modified time | relevance | path

Searched refs:gl (Results 1 – 25 of 38) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCubeRenderer.java46 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
53 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in onDrawFrame()
59 gl.glMatrixMode(GL10.GL_MODELVIEW); in onDrawFrame()
60 gl.glLoadIdentity(); in onDrawFrame()
61 gl.glTranslatef(0, 0, -3.0f); in onDrawFrame()
62 gl.glRotatef(mAngle, 0, 1, 0); in onDrawFrame()
63 gl.glRotatef(mAngle*0.25f, 1, 0, 0); in onDrawFrame()
65 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); in onDrawFrame()
66 gl.glEnableClientState(GL10.GL_COLOR_ARRAY); in onDrawFrame()
68 gl.glScalef(mScale, mScale, mScale); in onDrawFrame()
[all …]
DCube.java89 public void draw(GL10 gl) in draw() argument
91 gl.glFrontFace(GL10.GL_CW); in draw()
92 gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); in draw()
93 gl.glColorPointer(4, GL10.GL_FIXED, 0, mColorBuffer); in draw()
94 gl.glDrawElements(GL10.GL_TRIANGLES, 36, GL10.GL_UNSIGNED_BYTE, mIndexBuffer); in draw()
/cts/tests/tests/openglperf/src/android/openglperf/cts/
DTextureTestRenderer.java80 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
82 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in onDrawFrame()
84 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, in onDrawFrame()
88 gl.glMatrixMode(GL10.GL_MODELVIEW); in onDrawFrame()
89 gl.glLoadIdentity(); // reset the matrix to its default state in onDrawFrame()
92 GLU.gluLookAt(gl, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f); in onDrawFrame()
94 gl.glActiveTexture(GL10.GL_TEXTURE0); in onDrawFrame()
95 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); in onDrawFrame()
96 gl.glEnable(GL10.GL_TEXTURE_2D); in onDrawFrame()
99 gl.glColor4f(1.0f, 0f, 0f, 1.0f); in onDrawFrame()
[all …]
DGLSurfaceViewCustom.java648 GL wrap(GL gl); in wrap() argument
712 void onSurfaceCreated(GL10 gl, EGLConfig config); in onSurfaceCreated() argument
737 void onSurfaceChanged(GL10 gl, int width, int height); in onSurfaceChanged() argument
754 void onDrawFrame(GL10 gl); in onDrawFrame() argument
1123 GL gl = mEglContext.getGL(); in createGL() local
1127 gl = view.mGLWrapper.wrap(gl); in createGL()
1142 return gl; in createGL()
1285 GL10 gl = null; in guardedRun() local
1492 gl = (GL10) mEglHelper.createGL(); in guardedRun()
1494 sGLThreadManager.checkGLDriver(gl); in guardedRun()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
DGLRotationGuideRenderer.java64 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
65 clearBackground(gl); in onDrawFrame()
66 gl.glMatrixMode(GL10.GL_MODELVIEW); in onDrawFrame()
67 gl.glLoadIdentity(); in onDrawFrame()
68 gl.glRotatef(mAngle, mRotateX, mRotateY, mRotateZ); in onDrawFrame()
69 mMonolith.draw(gl); in onDrawFrame()
77 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
78 gl.glViewport(0, 0, width, height); in onSurfaceChanged()
79 gl.glMatrixMode(GL10.GL_PROJECTION); in onSurfaceChanged()
80 gl.glLoadIdentity(); in onSurfaceChanged()
[all …]
DGLArrowSensorTestRenderer.java74 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
76 gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_MODULATE); in onDrawFrame()
77 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); in onDrawFrame()
78 gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); in onDrawFrame()
79 gl.glActiveTexture(GL10.GL_TEXTURE0); in onDrawFrame()
80 gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID); in onDrawFrame()
81 gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); in onDrawFrame()
82 gl.glTexParameterx(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); in onDrawFrame()
85 gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); in onDrawFrame()
86 gl.glMatrixMode(GL10.GL_MODELVIEW); in onDrawFrame()
[all …]
DWedge.java139 public void draw(GL10 gl) { in draw() argument
140 gl.glFrontFace(GL10.GL_CCW); in draw()
141 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mFVertexBuffer); in draw()
142 gl.glEnable(GL10.GL_TEXTURE_2D); in draw()
143 gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, mTexBuffer); in draw()
144 gl.glDrawElements(GL10.GL_TRIANGLE_STRIP, 24, GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
DMonolith.java113 public void draw(GL10 gl) { in draw() argument
114 gl.glColor4f(0.5f, 0.5f, 0.5f, 1f); in draw()
115 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mVertexBuffer); in draw()
116 gl.glDrawElements(GL10.GL_TRIANGLES, NUM_INDICES, GL10.GL_UNSIGNED_SHORT, mIndexBuffer); in draw()
/cts/tests/tests/graphics/src/android/opengl/cts/
DEglConfigGLSurfaceView.java82 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
97 gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); in onSurfaceCreated()
100 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
101 gl.glClear(GL10.GL_COLOR_BUFFER_BIT); in onDrawFrame()
102 gl.glColor4f(1.0f, 0, 0, 0); in onDrawFrame()
103 gl.glVertexPointer(3, GL10.GL_FLOAT, 0, mFloatBuffer); in onDrawFrame()
104 gl.glDrawArrays(GL10.GL_TRIANGLES, 0, 3); in onDrawFrame()
111 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
112 gl.glViewport(0, 0, width, height); in onSurfaceChanged()
137 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
[all …]
DGLSurfaceViewCtsActivity.java35 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
39 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
43 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DOpenGlEsVersionCtsActivity.java181 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
184 mVersionString = gl.glGetString(GL10.GL_VERSION); in onSurfaceCreated()
185 mExtensionsString = gl.glGetString(GL10.GL_EXTENSIONS); in onSurfaceCreated()
194 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
197 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DGLESSurfaceView.java58 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
71 extensions = gl.glGetString(GL10.GL_EXTENSIONS); in onSurfaceCreated()
72 vendor = gl.glGetString(GL10.GL_VENDOR); in onSurfaceCreated()
73 renderer = gl.glGetString(GL10.GL_RENDERER); in onSurfaceCreated()
96 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
101 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
/cts/tests/tests/opengl/src/android/opengl/cts/
DRendererBase.java47 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
59 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
64 doOnDrawFrame(gl); in onDrawFrame()
69 public void doOnDrawFrame(GL10 gl) { in doOnDrawFrame() argument
DOpenGLES20NativeActivityOne.java120 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
124 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
134 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DRendererOneShaderTest.java46 public void doOnDrawFrame(GL10 gl) { in doOnDrawFrame() argument
60 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DRendererThreeShaderTest.java45 public void doOnDrawFrame(GL10 gl) { in doOnDrawFrame() argument
59 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DRendererNineShaderTest.java30 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DRendererEightShaderTest.java30 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DRendererOneProgramTest.java31 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
/cts/tests/tests/view/src/android/view/cts/
DDisplayRefreshRateTest.java107 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
143 gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); in onDrawFrame()
144 gl.glClear(gl.GL_COLOR_BUFFER_BIT); in onDrawFrame()
147 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
151 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DGLSurfaceViewCtsActivity.java35 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
39 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
43 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
/cts/tests/vr/src/android/vr/cts/
DRendererBasicTest.java60 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
71 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
76 doOnDrawFrame(gl); in onDrawFrame()
80 public void doOnDrawFrame(GL10 gl) { in doOnDrawFrame() argument
94 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
DRendererRefreshRateTest.java28 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
29 doOnDrawFrame(gl); in onDrawFrame()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DGlesStubActivity.java174 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument
187 extensions = gl.glGetString(GL10.GL_EXTENSIONS); in onSurfaceCreated()
188 vendor = gl.glGetString(GL10.GL_VENDOR); in onSurfaceCreated()
189 renderer = gl.glGetString(GL10.GL_RENDERER); in onSurfaceCreated()
209 public void onSurfaceChanged(GL10 gl, int width, int height) {} in onSurfaceChanged() argument
212 public void onDrawFrame(GL10 gl) {} in onDrawFrame() argument
/cts/tests/camera/src/android/hardware/cts/
DGLSurfaceViewCtsActivity.java35 public void onDrawFrame(GL10 gl) { in onDrawFrame() argument
39 public void onSurfaceChanged(GL10 gl, int width, int height) { in onSurfaceChanged() argument
43 public void onSurfaceCreated(GL10 gl, EGLConfig config) { in onSurfaceCreated() argument

12