List of usage examples for org.lwjgl.opengl GL11 glColor3f
public static native void glColor3f(@NativeType("GLfloat") float red, @NativeType("GLfloat") float green, @NativeType("GLfloat") float blue);
From source file:zsawyer.mods.stereoscopic3d.DebugUtil.java
License:Open Source License
public static void drawStereoscopicSquare(Eye eye) { // switch position depending on eye int offset = 10 * eye.ordinal(); // switch color depending on eye GL11.glColor3f(eye.ordinal(), 0, 1 - eye.ordinal()); // draw quad// w w w .jav a 2s . c o m GL11.glBegin(GL11.GL_QUADS); { GL11.glVertex2f(100 + offset, 100); GL11.glVertex2f(100 + 200 + offset, 100); GL11.glVertex2f(100 + 200 + offset, 100 + 200); GL11.glVertex2f(100 + offset, 100 + 200); } GL11.glEnd(); checkGLError(); GL11.glFlush(); }