parent
924398d3c6
commit
b3e651c093
|
@ -37,7 +37,7 @@ import org.lwjgl.DisplayMode;
|
|||
import org.lwjgl.input.Controller;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.Window;
|
||||
import org.lwjgl.opengl.GLU;
|
||||
import org.lwjgl.opengl.glu.GLU;
|
||||
import org.lwjgl.vector.Vector2f;
|
||||
|
||||
/**
|
||||
|
@ -89,7 +89,7 @@ public class ControllerCreationTest {
|
|||
|
||||
private void initializeOpenGL() {
|
||||
GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
GLU.gluOrtho2D(0.0, 640, 0, 480);
|
||||
GLU.gluOrtho2D(0.0f, 640f, 0f, 480f);
|
||||
}
|
||||
|
||||
public void executeTest() {
|
||||
|
|
|
@ -34,6 +34,7 @@ package org.lwjgl.test.input;
|
|||
import org.lwjgl.*;
|
||||
import org.lwjgl.input.*;
|
||||
import org.lwjgl.opengl.*;
|
||||
import org.lwjgl.opengl.glu.GLU;
|
||||
|
||||
import java.nio.*;
|
||||
|
||||
|
@ -50,9 +51,6 @@ public class HWCursorTest {
|
|||
/** Intended deiplay mode */
|
||||
private DisplayMode mode;
|
||||
|
||||
/** GLU instance */
|
||||
private GLU glu;
|
||||
|
||||
/** The native cursor */
|
||||
private static Cursor cursor = null;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.lwjgl.DisplayMode;
|
|||
import org.lwjgl.input.Keyboard;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.Window;
|
||||
import org.lwjgl.opengl.GLU;
|
||||
import org.lwjgl.opengl.glu.GLU;
|
||||
import org.lwjgl.vector.Vector2f;
|
||||
|
||||
/**
|
||||
|
@ -48,9 +48,6 @@ import org.lwjgl.vector.Vector2f;
|
|||
*/
|
||||
public class KeyboardTest {
|
||||
|
||||
/** GLU instance */
|
||||
private GLU glu;
|
||||
|
||||
/** position of quad to draw */
|
||||
private Vector2f position = new Vector2f(320.0f, 240.0f);
|
||||
|
||||
|
@ -90,7 +87,7 @@ public class KeyboardTest {
|
|||
|
||||
private void initializeOpenGL() {
|
||||
GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
GLU.gluOrtho2D(0.0, 640, 0, 480);
|
||||
GLU.gluOrtho2D(0.0f, 640f, 0f, 480f);
|
||||
}
|
||||
|
||||
public void executeTest() {
|
||||
|
@ -137,6 +134,7 @@ public class KeyboardTest {
|
|||
while (Keyboard.next()) {
|
||||
System.out.println("Checking key:" + Keyboard.getKeyName(Keyboard.getEventKey()));
|
||||
System.out.println("Key character: " + Keyboard.getCharacter());
|
||||
|
||||
if (Keyboard.getEventKey() == Keyboard.KEY_ESCAPE) {
|
||||
return;
|
||||
}
|
||||
|
@ -185,7 +183,6 @@ public class KeyboardTest {
|
|||
position.y = 480 - 30;
|
||||
}
|
||||
|
||||
|
||||
render();
|
||||
|
||||
Window.paint();
|
||||
|
|
|
@ -37,7 +37,7 @@ import org.lwjgl.DisplayMode;
|
|||
import org.lwjgl.input.Mouse;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.Window;
|
||||
import org.lwjgl.opengl.GLU;
|
||||
import org.lwjgl.opengl.glu.GLU;
|
||||
import org.lwjgl.vector.Vector2f;
|
||||
|
||||
/**
|
||||
|
@ -49,9 +49,6 @@ import org.lwjgl.vector.Vector2f;
|
|||
* @version $Revision$
|
||||
*/
|
||||
public class MouseCreationTest {
|
||||
/** GLU instance */
|
||||
private GLU glu;
|
||||
|
||||
/** position of quad to draw */
|
||||
private Vector2f position = new Vector2f(320.0f, 240.0f);
|
||||
|
||||
|
@ -92,7 +89,7 @@ public class MouseCreationTest {
|
|||
|
||||
private void initializeOpenGL() {
|
||||
GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
GLU.gluOrtho2D(0.0, 640, 0, 480);
|
||||
GLU.gluOrtho2D(0.0f, 640f, 0f, 480f);
|
||||
}
|
||||
|
||||
public void executeTest() {
|
||||
|
|
Loading…
Reference in New Issue