Code example for EGLContext

Methods: getGL

0
 
            /* 
             * Before we can issue GL commands, we need to make sure 
             * the context is current and bound to a surface. 
             */ 
            mEgl.eglMakeCurrent( mEglDisplay, mEglSurface, mEglSurface, mEglContext );
 
 
            GL gl = mEglContext.getGL();
            return gl;
        } 
 
        /** 
         * Display the current render surface. 
         * @return false if the context has been lost. 
         */ 
        public boolean swap()  
        { 
            mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);
 
            /*