Code example for GL10

Methods: glLoadIdentity, glMatrixMode, glTranslatef

0
     * </ul> 
     * 
     * @param gl a GL10 instance whose modelview matrix is to be modified. 
     */ 
    public void setView(GL10 gl) {
        gl.glMatrixMode(GL10.GL_MODELVIEW);
        gl.glLoadIdentity();
 
        // Move the viewpoint backwards 
        gl.glTranslatef(params[TRANSLATE_X],
                        params[TRANSLATE_Y],
                        params[TRANSLATE_Z]);
    } 
 
    /** 
     * Sets texture parameters. 
     * 
     * <p> GL side effects: 
     * <ul> 
     * <li>sets the GL_PERSPECTIVE_CORRECTION_HINT</li> 
     * <li>sets the GL_TEXTURE_MIN_FILTER texture parameter</li>