Code example for GL10

Methods: glPopMatrixglPushMatrixglRotatefglTranslatef

	 * Method responsible to draw the game-over image. 
	private void drawGameOverScreen() { 
		gl.glTranslatef(width / 2, height / 2, 0.0f);
		gl.glRotatef(90, 0.0f, 0.0f, 1.0f);
	 * Method responsible to draw the weapon. On each frame it receives the 
	 * location where it should be in and draws it appropriatelly. 
	private void drawWeapon() { 
		// if the weapon just started following the path, the user stops being 
		// able to draw a new line until it gets back 
		if (firstpoint) {
Experience pair programming with AI  Get Codota for Java