Code example for GL10

Methods: glClearColor, glDisable

0
            gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
        } 
 
        public void onSurfaceCreated(GL10 gl, EGLConfig config) {
            // dither is enabled by default, we don't need it 
            gl.glDisable(GL10.GL_DITHER);
            // clear screen in white 
            gl.glClearColor(1,1,1,1);
        } 
 
        class Cube { 
            // initialize our cube 
            private FloatBuffer mVertexBuffer;
            private FloatBuffer mColorBuffer;
            private ByteBuffer  mIndexBuffer;
 
            public Cube() { 
                final float vertices[] = {
                        -1, -1, -1,		 1, -1, -1, 
                         1,  1, -1,	    -1,  1, -1, 
                        -1, -1,  1,      1, -1,  1,