Code example for GL10

Methods: glClear, glDisable, glEnable, glLoadIdentity, glRotatef, glScalef, glTranslatef

0
		public ProShowCubeRenderer(Context context) {
			leCube = new ProShowCube(context);
		} 
 
		public void onDrawFrame(GL10 gl) {
			gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
			parseAngles(); 
 
			gl.glLoadIdentity();
			//			gl.glTranslatef(0.0f, -2.0f, -6.0f); 
			gl.glTranslatef(0.0f, 0.0f, -6.0f);
			gl.glRotatef(mAngleX, 0, 1, 0);
			gl.glRotatef(mAngleY, 1, 0, 0);
			gl.glScalef(0.65f, 0.65f, 0.65f);
			gl.glEnable(GL10.GL_BLEND);
			gl.glDisable(GL10.GL_DEPTH_TEST);
			leCube.draw(gl);
 
//			Log.e("ProShow", "" + mAngleX + " " + mAngleY); 
			 
			//			MatrixGrabber matrixGrabber = new MatrixGrabber(); 
			//			gl.glPushMatrix();