From f40973624c8cee6769435c317a17b9d502d52f52 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Mon, 24 Mar 2003 17:07:25 +0000 Subject: [PATCH] mod: making it possible to see color differences by clicking mouse buttons --- .../lwjgl/test/input/MouseCreationTest.java | 36 ++++++++++--------- src/java/org/lwjgl/test/input/MouseTest.java | 18 ++++++---- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/src/java/org/lwjgl/test/input/MouseCreationTest.java b/src/java/org/lwjgl/test/input/MouseCreationTest.java index 60c91d1e..f4b839dc 100644 --- a/src/java/org/lwjgl/test/input/MouseCreationTest.java +++ b/src/java/org/lwjgl/test/input/MouseCreationTest.java @@ -201,22 +201,26 @@ public class MouseCreationTest { private void render() { gl.clear(GL.COLOR_BUFFER_BIT); - gl.pushMatrix(); - gl.begin(GL.POLYGON); - { - gl.color3f(0.0f, 1.0f, 1.0f); - gl.vertex2f(position.x + 0.0f, position.y + 0.0f); - - gl.color3f(1.0f, 0.0f, 1.0f); - gl.vertex2f(position.x + 0.0f, position.y + 30.0f); - gl.vertex2f(position.x + 40.0f, position.y + 30.0f); - - gl.color3f(1.0f, 1.0f, 0.0f); - gl.vertex2f(position.x + 60.0f, position.y + 15.f); - gl.vertex2f(position.x + 40.0f, position.y + 0.0f); - } - gl.end(); - gl.popMatrix(); + gl.begin(GL.POLYGON); + { + float color = 1.0f; + int buttonDown = 0; + + for(int i=0;i