Code example for GL10

Methods: glRotatef, glTranslatef

0
	} 
 
	@Override 
	public void onDrawFrame(GL10 gl) 
	{ 
		super.onDrawFrame(gl); 
 
		gl.glTranslatef(0.0f, 0.0f, -6.0f); 
		gl.glRotatef(this.angle, 0.5f, 1.0f, -0.8f); 
		this.cube.draw(gl); 
 
		this.angle += this.speed; 
	} 
}