Code example for GL11

Methods: glTranslatef

0
			float x2, float y2) {
		return makeFloatBuffer(new float[] { x1, y1, x1, y2, x2, y2, x2, y1 });
	} 
 
	public static final void translate(float x, float y) {
		gl.glTranslatef(x, y, 0);
	} 
 
	public static final void scale(float x, float y) {
		gl.glScalef(x, y, 1);
	} 
 
	public static final void push() { 
		gl.glPushMatrix();
	} 
 
	public static final void pop() { 
		gl.glPopMatrix();
	} 
 
	public static final void drawText(String text, float[] color, float height,