Copy the selected text by pressing ctrl+c

Code example for GL10

Methods: glPopMatrix, glPushMatrix, glRotatef, glTranslatef

/**
* Method responsible to draw the game-over image.
*/
private void drawGameOverScreen() {
gl.glPushMatrix();
gl.glTranslatef(width / 2, height / 2, 0.0f);
gl.glRotatef(90, 0.0f, 0.0f, 1.0f);
gameOver.draw(gl);
gl.glPopMatrix();
}
/**
* 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) {
setOnFire = false;