Home | History | Annotate | Download | only in graphics

Lines Matching defs:gl

34     public void onDrawFrame(GL10 gl) {
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);
58 gl.glRotatef(mAngle*2.0f, 0, 1, 1);
59 gl.glTranslatef(0.5f, 0.5f, 0.5f);
61 mCube.draw(gl);
66 public void onSurfaceChanged(GL10 gl, int width, int height) {
67 gl.glViewport(0, 0, width, height);
76 gl.glMatrixMode(GL10.GL_PROJECTION);
77 gl.glLoadIdentity();
78 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
81 public void onSurfaceCreated(GL10 gl, EGLConfig config) {
87 gl.glDisable(GL10.GL_DITHER);
93 gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
97 gl.glClearColor(0,0,0,0);
99 gl.glClearColor(1,1,1,1);
101 gl.glEnable(GL10.GL_CULL_FACE);
102 gl.glShadeModel(GL10.GL_SMOOTH);
103 gl.glEnable(GL10.GL_DEPTH_TEST);