GL10 glDisable - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for GL10 glDisable method.

This code example shows how to use the following methods:glDepthFunc, glDisable, glLoadIdentity, glMatrixMode
        glManager.resetCamera();
        glManager.resetWorldMatrix();
        GL11 gl = glManager.getGL();
 
        //! ライト無効化 
        gl.glDisable(GL10.GL_LIGHTING);
 
        //! 深度テストの無効化と、評価式の変更 
        gl.glDisable(GL10.GL_DEPTH_TEST);
        gl.glDepthFunc(GL10.GL_ALWAYS);
 
        //! 描画用四角形の関連付け 
        quadPolygon.bind();
 
        //! ポリゴン色の設定 
        setColor(0xffffffff); 
        glManager.getGL().glColor4f(1, 1, 1, 1);
 
        //! テクスチャ行列のリセット 
        { 

6
CodeRank
This code example shows how to use the following methods:glDisable, glEnable, glShadeModel
This code example shows how to use the following methods:glDisable, glDisableClientState
      - 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. 
8
CodeRank
This code example shows how to use the following methods:glClearColor, glDisable, glEnable, glEnableClientState, glShadeModel
        /* 
         * By default, OpenGL enables features that improve quality 
         * but reduce performance. One might want to tweak that 
         * especially on software renderer. 
         */ 
        gl.glDisable(GL10.GL_DITHER);
 
        /* 
         * Some one-time OpenGL initialization can be made here 
         * probably based on features of this particular context 
         */ 
        gl.glClearColor(1,1,1,1);
        gl.glEnable(GL10.GL_CULL_FACE);
        gl.glShadeModel(GL10.GL_SMOOTH);
        gl.glEnable(GL10.GL_DEPTH_TEST);
 
        /* 
         * create / load the our 3D models here 
         */ 
 

8
CodeRank
This code example shows how to use the following methods:glClearColor, glDisable, glEnable, glHint, glShadeModel
This code example shows how to use the following methods:glClearColor, glDisable
            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, 
6
CodeRank
This code example shows how to use the following methods:glClearColor, glDisable, glEnable, glHint, glShadeModel
        /* 
         * By default, OpenGL enables features that improve quality 
         * but reduce performance. One might want to tweak that 
         * especially on software renderer. 
         */ 
        gl.glDisable(GL10.GL_DITHER);
 
        /* 
         * Some one-time OpenGL initialization can be made here 
         * probably based on features of this particular context 
         */ 
         gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT,
                 GL10.GL_FASTEST);
 
         if (mTranslucentBackground) {
             gl.glClearColor(0,0,0,0);
         } else { 
             gl.glClearColor(1,1,1,1);
         } 
         gl.glEnable(GL10.GL_CULL_FACE);

8
CodeRank
This code example shows how to use the following methods:glClearColor, glDisable, glEnable, glHint, glShadeModel
     * around only when we're drawing. 
     */ 
    @Override 
    public void surfaceCreated(GL10 gl) {
        // set up the surface 
        gl.glDisable(GL10.GL_DITHER);
 
        gl.glHint(
            GL10.GL_PERSPECTIVE_CORRECTION_HINT,
            GL10.GL_FASTEST);
 
        gl.glClearColor(0.2f, 0.1f, 0.8f, 0.1f);
        gl.glShadeModel(GL10.GL_SMOOTH);
        gl.glEnable(GL10.GL_DEPTH_TEST);
 
        // fetch the checker-board 
        initImage(gl);
    } 
 
    /** 
8
CodeRank
This code example shows how to use the following methods:glDisable, glMatrixMode, glPopMatrix
     * 
     * @param gl 
     */ 
    public void endDrawing(GL10 gl) {
        checkState(STATE_DRAWING, STATE_INITIALIZED);
        gl.glDisable(GL10.GL_BLEND);
        gl.glMatrixMode(GL10.GL_PROJECTION);
        gl.glPopMatrix();
        gl.glMatrixMode(GL10.GL_MODELVIEW);
        gl.glPopMatrix();
    } 
 
    private void checkState(int oldState, int newState) {
        if (mState != oldState) {
            throw new IllegalArgumentException("Can't call this method now.");
        } 
        mState = newState;
    } 
 
    private static class Label { 
7
CodeRank
This code example shows how to use the following methods:glClearColor, glClearDepthf, glDepthFunc, glDisable, glEnable

Related GL10 glDisable Questions & Answers: