Code example for GL10

Methods: glClearColorglClearDepthfglDepthFuncglEnableglHintglShadeModel

	 * The Surface is created/init() 
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {
		gl.glShadeModel(GL10.GL_SMOOTH); // Enable Smooth Shading
		gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f); // Black Background
		gl.glClearDepthf(1.0f); // Depth Buffer Setup
		gl.glEnable(GL10.GL_DEPTH_TEST); // Enables Depth Testing
		gl.glDepthFunc(GL10.GL_LEQUAL); // The Type Of Depth Testing To Do
		// Really Nice Perspective Calculations 
	 * Here we do our drawing 
	public void onDrawFrame(GL10 gl) {
Stop searching for code, let great code find you!  Add Codota to your java IDE