Lines Matching refs:gl
144 private void init(GL10 gl) { in init() argument
149 gl.glEnable(gl.GL_DEPTH_TEST); in init()
151 gl.glDisable(gl.GL_SCISSOR_TEST); in init()
154 gl.glEnable(gl.GL_DITHER); in init()
156 gl.glShadeModel(gl.GL_SMOOTH); in init()
158 gl.glEnable(gl.GL_CULL_FACE); in init()
159 gl.glFrontFace(gl.GL_CCW); in init()
161 gl.glClearColor(0, 0, 0, 1); in init()
163 gl.glLightModelf(gl.GL_LIGHT_MODEL_TWO_SIDE, 0); in init()
164 gl.glLightModelfv(gl.GL_LIGHT_MODEL_AMBIENT, lightModelAmbient, 0); in init()
169 GL10 gl = (GL10)mGLContext.getGL(); in onDraw() local
173 init(gl); in onDraw()
194 gl.glViewport(0, 0, w, h); in onDraw()
200 gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT); in onDraw()
203 glView.setProjection(gl); in onDraw()
204 glView.setView(gl); in onDraw()
207 gl.glMatrixMode(gl.GL_MODELVIEW); in onDraw()
208 gl.glEnable(gl.GL_LIGHTING); in onDraw()
209 gl.glEnable(gl.GL_LIGHT0); in onDraw()
210 gl.glLightfv(gl.GL_LIGHT0, gl.GL_POSITION, mLightDir, 0); in onDraw()
211 glView.setLights(gl, gl.GL_LIGHT0); in onDraw()
214 gl.glRotatef(mTiltAngle, 1, 0, 0); in onDraw()
215 gl.glRotatef(mRotAngle, 0, 1, 0); in onDraw()
218 gl.glScalef(mScale, mScale, mScale); in onDraw()
221 gl.glTranslatef(-mCenterX, -mCenterY, -mCenterZ); in onDraw()
234 object.draw(gl); in onDraw()