Code example for GL10

Methods: glCullFace, glFrontFace

0
	/** 
	 * Called when the surface is created or recreated. 
	 */ 
	@Override 
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
		GLHelper.reset(gl);
		GLHelper.hintPerspectiveCorrectionAndNicest(gl);
		GLHelper.enableLighting(gl, false);
		GLHelper.enableDither(gl, false);
		GLHelper.enableMultiSample(gl, false);
		GLHelper.enableColorArray(gl, false);
		GLHelper.enableDepthTest(gl, false);
 
		GLHelper.enableTextures(gl, true);
		GLHelper.enableTexCoordArray(gl, true);
		GLHelper.enableBlend(gl, true);
		GLHelper.blendMode(gl, GL10.GL_SRC_ALPHA,GL10.GL_ONE_MINUS_SRC_ALPHA);
		 
		GLHelper.enableVertexArray(gl, true);
		GLHelper.enableCulling(gl, true);
		gl.glFrontFace(GL10.GL_CCW);
		gl.glCullFace(GL10.GL_BACK);
	} 
	 
	/** 
	 * Called after the surface is created and whenever the OpenGL ES surface size changes. 
	 */