Code example for GL11

Methods: glClearColor

0
	public static final void setColor(float[] color) {
		gl.glColor4f(color[0], color[1], color[2], color[3]);
	} 
 
	protected void initBackgroundColor() { 
		gl.glClearColor(backgroundColor[0], backgroundColor[1],
				backgroundColor[2], backgroundColor[3]);
	} 
 
	public float viewX(float x) {
		return x * borderWidth + minX;
	} 
 
	public float viewY(float y) {
		return (1 - y) * borderHeight + minY;
	} 
 
	public float unitX(float viewX) {
		return (viewX - minX) / borderWidth;
	}