Code example for GL10

Methods: glDisable, glDisableClientState

0
      - GL_VERTEX_ARRAY 
      - GL_TEXTURE_COORD_ARRAY 
      - GL_COLOR_ARRAY 
      */ 
    public static final void CC_DISABLE_DEFAULT_GL_STATES(GL10 gl) {
        gl.glDisable(GL10.GL_TEXTURE_2D);
        gl.glDisableClientState(GL10.GL_COLOR_ARRAY);
        gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
        gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);
    } 
 
    /** @def CC_DIRECTOR_INIT 
      - Initializes an EAGLView with 0-bit depth format, and RGB565 render buffer. 
      - The EAGLView view will have multiple touches disabled. 
      - It will create a UIWindow and it will assign it the 'window' variable. 'window' must be declared before calling this marcro. 
      - It will parent the EAGLView to the created window 
      - If the firmware >= 3.1 it will create a Display Link Director. Else it will create an NSTimer director. 
      - It will try to run at 60 FPS. 
      - The FPS won't be displayed. 
      - The orientation will be portrait. 
      - It will connect the director with the EAGLView.