Code example for GL10

Methods: glLoadIdentityglMatrixModeglOrthofglViewport

0
			((KCamera) mContext).getCameraPreview().takePicture(sb);
		} 
	} 
 
	public void onSurfaceChanged(GL10 gl, int width, int height) {
		gl.glViewport(0, 0, width, width);
		gl.glMatrixMode(GL10.GL_PROJECTION);
		gl.glLoadIdentity();
		// float ratio = (float) height / width; 
		gl.glOrthof(-1, 1, -1, 1, 0.1f, 100);
		gl.glMatrixMode(GL10.GL_MODELVIEW);
		gl.glLoadIdentity();
	} 
 
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
		gl.glDisable(GL10.GL_DITHER);
 
		gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
 
		gl.glClearColor(0, 0, 0, 0);
Connect your IDE to all the code out there  Get Codota for Java