moved Lesson19 to test package
This commit is contained in:
parent
aeb3f9a877
commit
2f40eced5f
2 changed files with 20 additions and 7 deletions
|
|
@ -11,9 +11,9 @@ import ei.engine.state.GameStateManager;
|
|||
import ei.engine.util.MultiPrintStream;
|
||||
|
||||
public class LWJGLGameWindow {
|
||||
private boolean exit = false;
|
||||
private int width;
|
||||
private int height;
|
||||
private static boolean exit = false;
|
||||
private static int width;
|
||||
private static int height;
|
||||
private int fps;
|
||||
private boolean fullscreen;
|
||||
private String title;
|
||||
|
|
@ -23,8 +23,8 @@ public class LWJGLGameWindow {
|
|||
}
|
||||
|
||||
public LWJGLGameWindow(int width, int height, int fps, boolean fullscreen, String title){
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
LWJGLGameWindow.width = width;
|
||||
LWJGLGameWindow.height = height;
|
||||
this.fps = fps;
|
||||
this.fullscreen = fullscreen;
|
||||
this.title = title;
|
||||
|
|
@ -74,7 +74,7 @@ public class LWJGLGameWindow {
|
|||
GL11.glMatrixMode(GL11.GL_PROJECTION);
|
||||
//Reset The Projection Matrix
|
||||
GL11.glLoadIdentity();
|
||||
|
||||
//turn on 2D mode
|
||||
GL11.glOrtho(0.0f, width, height, 0, -1, 1);
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
package ei.engine.effects;
|
||||
package ei.engine.test;
|
||||
/*
|
||||
* This Code Was Created By Jeff Molofee and GB Schmick 2000
|
||||
* 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.input.Keyboard;
|
||||
|
||||
import ei.engine.effects.Particle;
|
||||
import ei.engine.texture.Texture;
|
||||
import ei.engine.texture.TextureLoader;
|
||||
import ei.engine.util.MultiPrintStream;
|
||||
Loading…
Add table
Add a link
Reference in a new issue