Code example for GL10

Methods: glFrustumfglLoadIdentityglMatrixModeglViewport

        mAngle += 1.2f;
    public void onSurfaceChanged(GL10 gl, int width, int height) {
         gl.glViewport(0, 0, width, height);
          * Set our projection matrix. This doesn't have to be done 
          * each time we draw, but usually a new projection needs to 
          * be set when the viewport is resized. 
         float ratio = (float) width / height;
         gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10);
    public void onSurfaceCreated(GL10 gl, EGLConfig config) {
         * By default, OpenGL enables features that improve quality 
Connect your IDE to all the code out there  Get Codota for Java