Code example for GL10

Methods: glBlendFuncglClearColorglDisableglEnableglHintglShadeModel

0
	public void onSurfaceCreated(GL10 gl, EGLConfig arg1) {
		initFPScounter(); 
	 
		 
		//Setting the "background" color 
		gl.glClearColor(0f, 0f, 0f, 1);
		 
	    gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
	    //setting Shader 
	    gl.glShadeModel(GL10.GL_FLAT);
	    gl.glDisable(GL10.GL_DEPTH_TEST);
	     
	    //Enable Alpha 
	    gl.glEnable(GL10.GL_BLEND);
	    gl.glBlendFunc(GL10.GL_ONE, GL10.GL_ONE_MINUS_SRC_ALPHA); 
 
	    gl.glEnable(GL10.GL_TEXTURE_2D);
 
	} 
 
	@Override 
	public void onDrawFrame(GL10 gl) {
Stop searching for code, let great code find you!  Add Codota to your java IDE