Home | History | Annotate | Download | only in graphics

Lines Matching refs:gl

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);
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 public void onSurfaceChanged(GL10 gl, int width, int height) {
137 gl.glViewport(0, 0, width, height);
146 gl.glMatrixMode(GL10.GL_PROJECTION);
147 gl.glLoadIdentity();
148 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
151 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
157 gl.glDisable(GL10.GL_DITHER);
163 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
167 gl.glClearColor(1,1,1,1);
168 gl.glEnable(GL10.GL_CULL_FACE);
169 gl.glShadeModel(GL10.GL_SMOOTH);
170 gl.glEnable(GL10.GL_DEPTH_TEST);