Code example for GL10

Methods: glBlendFuncglClearColorglClearDepthfglDisableglEnableglHintglShadeModel

	 * The Surface is created/init() 
	public void onSurfaceCreated(GL10 gl, EGLConfig config) {		
		gl.glEnable(GL10.GL_TEXTURE_2D);					//Enable Texture Mapping
		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
		//Really Nice Perspective Calculations 
		gl.glEnable(GL10.GL_BLEND);							//Enable blending
		gl.glDisable(GL10.GL_DEPTH_TEST);					//Disable depth test
		gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);		//Set The Blending Function For Translucency		
		//Initiate our stars class with the number of stars 
		stars = new Stars(num);
		//Load the texture for the stars once during Surface creation 
		stars.loadGLTexture(gl, this.context);
	 * Here we do our drawing