From: <eli...@us...> - 2009-04-26 19:58:09
|
Revision: 3204 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3204&view=rev Author: elias_naur Date: 2009-04-26 19:58:08 +0000 (Sun, 26 Apr 2009) Log Message: ----------- Added init code to space invaders example Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/examples/spaceinvaders/Game.java Modified: trunk/LWJGL/src/java/org/lwjgl/examples/spaceinvaders/Game.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/examples/spaceinvaders/Game.java 2009-04-24 20:35:33 UTC (rev 3203) +++ trunk/LWJGL/src/java/org/lwjgl/examples/spaceinvaders/Game.java 2009-04-26 19:58:08 UTC (rev 3204) @@ -228,6 +228,9 @@ 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(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |