moved Lesson19 to test package

This commit is contained in:
Ziver Koc 2007-03-26 08:46:10 +00:00
parent aeb3f9a877
commit 2f40eced5f
2 changed files with 20 additions and 7 deletions

View file

@ -11,9 +11,9 @@ import ei.engine.state.GameStateManager;
import ei.engine.util.MultiPrintStream; import ei.engine.util.MultiPrintStream;
public class LWJGLGameWindow { public class LWJGLGameWindow {
private boolean exit = false; private static boolean exit = false;
private int width; private static int width;
private int height; private static int height;
private int fps; private int fps;
private boolean fullscreen; private boolean fullscreen;
private String title; private String title;
@ -23,8 +23,8 @@ public class LWJGLGameWindow {
} }
public LWJGLGameWindow(int width, int height, int fps, boolean fullscreen, String title){ public LWJGLGameWindow(int width, int height, int fps, boolean fullscreen, String title){
this.width = width; LWJGLGameWindow.width = width;
this.height = height; LWJGLGameWindow.height = height;
this.fps = fps; this.fps = fps;
this.fullscreen = fullscreen; this.fullscreen = fullscreen;
this.title = title; this.title = title;
@ -74,7 +74,7 @@ public class LWJGLGameWindow {
GL11.glMatrixMode(GL11.GL_PROJECTION); GL11.glMatrixMode(GL11.GL_PROJECTION);
//Reset The Projection Matrix //Reset The Projection Matrix
GL11.glLoadIdentity(); GL11.glLoadIdentity();
//turn on 2D mode
GL11.glOrtho(0.0f, width, height, 0, -1, 1); GL11.glOrtho(0.0f, width, height, 0, -1, 1);
// Select The Modelview Matrix (controls model orientation) // Select The Modelview Matrix (controls model orientation)
@ -185,4 +185,16 @@ public class LWJGLGameWindow {
} }
} }
public static void exit(){
exit = true;
}
public static int getHeight(){
return height;
}
public static int getWidth(){
return width;
}
} }

View file

@ -1,4 +1,4 @@
package ei.engine.effects; package ei.engine.test;
/* /*
* This Code Was Created By Jeff Molofee and GB Schmick 2000 * This Code Was Created By Jeff Molofee and GB Schmick 2000
* A HUGE Thanks To Fredric Echols For Cleaning Up * A HUGE Thanks To Fredric Echols For Cleaning Up
@ -13,6 +13,7 @@ import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.glu.GLU; import org.lwjgl.opengl.glu.GLU;
import org.lwjgl.input.Keyboard; import org.lwjgl.input.Keyboard;
import ei.engine.effects.Particle;
import ei.engine.texture.Texture; import ei.engine.texture.Texture;
import ei.engine.texture.TextureLoader; import ei.engine.texture.TextureLoader;
import ei.engine.util.MultiPrintStream; import ei.engine.util.MultiPrintStream;