Code example for GL10

Methods: gluLookAtgluPerspectiveglLoadIdentityglMatrixMode

0
//	private float _cameraPosZ = 36.16f; 
	private void setFacingPlayerPersp(GL10 gl) {
//		_cameraPosY += touchDeltaY * 0.001f; 
//		_cameraPosZ += touchDeltaX * 0.001f; 
		 
		gl.glMatrixMode(GL10.GL_PROJECTION);
		gl.glLoadIdentity();
		GLU.gluPerspective(gl, 45.0f, _aspect, 0.1f, 100.0f);
		//gl.glFrustumf(-_aspect*10, _aspect*10, -10, 10, 0.1f, 100.0f);  // apply the projection matrix 
		gl.glMatrixMode(GL10.GL_MODELVIEW);
		gl.glLoadIdentity();
		 
		// When using GL_MODELVIEW, you must set the camera view 
		//GLU.gluLookAt(gl, 0, _cameraPosY, _cameraPosZ, 
		//				  0, _cameraPosY, 0, 
		GLU.gluLookAt(gl, 0, 12.09f, 36.16f,
						  0, 12.09f, 0, 
						  0, 1, 0); 
	} 
	 
} 
Connect your IDE to all the code out there  Get Codota for Java