Added init code to space invaders example
This commit is contained in:
parent
68ec5edea1
commit
3f9dfefe81
|
@ -228,6 +228,9 @@ public class Game {
|
|||
GL11.glLoadIdentity();
|
||||
|
||||
GL11.glOrtho(0, width, height, 0, -1, 1);
|
||||
GL11.glMatrixMode(GL11.GL_MODELVIEW);
|
||||
GL11.glLoadIdentity();
|
||||
GL11.glViewport(0, 0, width, height);
|
||||
|
||||
textureLoader = new TextureLoader();
|
||||
|
||||
|
|
Loading…
Reference in New Issue