Code example for GL10

Methods: glLoadIdentity, glMatrixMode, glViewport, gluOrtho2D

0
			height = 1;
		} 
		this.width = width;
		this.height = height;
 
		gl.glMatrixMode(GL10.GL_PROJECTION);
 
		gl.glViewport(0, 0, width, height);
		gl.glLoadIdentity();
		GLU.gluOrtho2D(gl, 0, width, height, 0);
	} 
 
	/** 
	 * Actions to be performed when the surface is created. It basically sets 
	 * the projection, enebles OpenGL features such as the Alpha value for 
	 * transparency and assigns the textures. 
	 */ 
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
 
		this.gl = gl;