From: Luke H. <lh...@us...> - 2002-11-26 07:05:54
|
Update of /cvsroot/java-game-lib/LWJGL/examples/nehe/lesson01 In directory sc8-pr-cvs1:/tmp/cvs-serv29914/lesson01 Modified Files: Lesson1.java Log Message: now using timers, packages... most packages extend lesson1 or 6-7. lessons 10-17 will be broken for the rest of the night. going to bed... They will be done tomarrow =) Index: Lesson1.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/examples/nehe/lesson01/Lesson1.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/examples/nehe/lesson01/Lesson1.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Lesson1.java 26 Nov 2002 05:44:49 -0000 1.2 +++ Lesson1.java 26 Nov 2002 07:05:20 -0000 1.3 @@ -49,8 +49,8 @@ protected GL gl; protected GLU glu; - protected boolean done = false; protected boolean fullscreen = true; + protected boolean done = false; protected long timerRes; /** Creates a new instance of Lesson */ @@ -127,7 +127,7 @@ } } - protected void start() throws Exception { + protected void start(int width, int height, int bpp, boolean fullscreen) throws Exception { long frameTime = 0; timerRes = Sys.getTimerResolution(); @@ -136,7 +136,7 @@ } try { - createGLWindow(640, 480, 16, fullscreen); + createGLWindow(width, height, bpp, fullscreen); do { /* The frameTime is how much time it takes to draw a single frame. @@ -187,7 +187,7 @@ int err = 0; Lesson1 lesson = new Lesson1(); try { - lesson.start(); + lesson.start(640, 480, 16, false); } catch (Exception e) { err = 1; |