Code example for GL10

Methods: glBlendFunc, glClear, glDisable, glEnable, glLoadIdentity, glTexEnvf, glTranslatef

0
         * microedition.khronos.opengles.GL10) 
	 */ 
	public void onDrawFrame(GL10 gl) {
		 
		// Clears the screen and depth buffer. 
		gl.glClear(GL10.GL_COLOR_BUFFER_BIT | // OpenGL docs.
                           GL10.GL_DEPTH_BUFFER_BIT);
		 
	    gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);
		gl.glEnable(GL10.GL_BLEND);
		// gl.glAlphaFunc(GL10.GL_GREATER, 0.2f); 
		 
		 gl.glTexEnvf( GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_BLEND);
		  
		gl.glLoadIdentity();
		// Translates 4 units into the screen. 
		gl.glTranslatef(0, 0, -3.3f); 
		// Draw our square. 
		gl.glDisable(GL10.GL_BLEND);
		sq.draw(gl);
		 
 
	} 
 
	/*