From: Kenneth B. R. <kbr...@us...> - 2008-03-02 20:21:50
|
Update of /cvsroot/jake2/jake2 In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv16186 Modified Files: build.xml Log Message: Changes to enable Jake2 to run well as an applet inside the next-generation Java Plug-In. Added Globals.appletMode, Globals.applet and Globals.sizeChangeListener to be able to easily pass around the knowledge that the system is running in applet mode, and the applet itself, which becomes the parent container for the output. Most changes were in Jsr231Driver to support putting the Display into a preexisting parent container rather than a new Frame each time. Changed JOGLKBD to allow manual initialization of the parent container rather than obtaining it from a CreateNotify or ConfigureNotify event since these will never be generated in the applet case. Removed various calls to System.exit(), although strictly speaking this is no longer necessary because it is expected that the separate_jvm parameter will be used in conjunction with the new Java Plug-In to create a fresh JVM instance for each run of Jake2. Video mode switching in applet mode is working; the applet resizes (via JavaScript) to accommodate the newly selected resolution. Full screen mode when running as an applet is not implemented at this point, as the intent was to show this inside the browser, though support could be added very straightforwardly. Index: build.xml =================================================================== RCS file: /cvsroot/jake2/jake2/build.xml,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** build.xml 6 May 2007 21:02:19 -0000 1.38 --- build.xml 2 Mar 2008 20:21:09 -0000 1.39 *************** *** 27,30 **** --- 27,31 ---- <pathelement location="lib/lwjgl/lwjgl.jar"/> <pathelement location="lib/lwjgl/lwjgl_util.jar"/> + <pathelement location="${java.home}/lib/plugin.jar"/> </path> *************** *** 153,156 **** --- 154,158 ---- </jar> <property name="classes" value="${java.home}/lib/rt.jar"/> + <property name="plugin" value="${java.home}/lib/plugin.jar"/> <condition property="classes" value="${java.home}/../Classes/classes.jar"> <os name="Mac OS X"/> *************** *** 164,167 **** --- 166,170 ---- <libraryjar name="lib/joal/gluegen-rt.jar"/> <libraryjar name="${classes}"/> + <libraryjar name="${plugin}"/> <keep access="public" name="jake2.Jake2"> <method name="main(java.lang.String[])"/> |