aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2
Commit message (Collapse)AuthorAgeFilesLines
* Remove workaround for Bug 798HEADmasterSven Gothel2013-07-242-8/+0
|
* Add Applet Feature incl. required fixes.Sven Gothel2013-06-2821-330/+695
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Jake2Applet - Reenable JavaScript Bridge to resize Applet - Pass through 4:3 aspect custom video mode (Jake2 args) - Pass through applet parameter 'jake_args' (Jake2 args) - OSX Hack: Re-create Game at init, otherwise flickering appears (??) - Fix VID.init: Set vid_ref.modifier = true, otherwise not guaranteed VID creation - BeginFrame, R_BeginFrame, beginFrame, activateGLContext: Return 'true', if ctx is available, otherwise false to skip frame. - NEWTWin: - Applet mode (in Applet container): Always release GL ctx - Use GLAnimatorControl impl, to state whether we are animating or not and to tell us, whether we have to release the GL ctx. - Add HOME -> Reparent feature for Applets - Workaround for NEWT/Windows Bug 798 - NEWT Key Handling: - Ignore auto-repeat - Workaround for NEWT/Windows Bug 798 - Add HTML page - normal - debug mode
* Fix Window destroyNotify() -> QUITSven Gothel2013-06-276-13/+27
|
* Adapt to JOGL/NEWT Changed up to v2.0.2-c12 ..Sven Gothel2013-06-2711-50/+42
| | | | | | - NEWT ScreenMode -> MonitorMode - NEWT Window: Don't issue Game.Quit() if already in shutdown (could be screen mode change) - NEWT KeyEvents: No keyTyped, adapt to new KeyCodes.
* Merge remote-tracking branch 'xranby-github/jsound'Xerxes Rånby2013-04-261-2/+9
|\
| * Enable use of jsound +set s_impl jsoundXerxes Rånby2012-10-211-2/+9
| |
* | NEWTKBD: handle JogAmp 2.0.2 NEWT API changes.Xerxes Rånby2013-04-111-3/+2
| | | | | | | | | | | | | | | | | | | | Use MouseEvent getRotation JogAmp jogl: ded080fd890c21b54ba1f96d84f9e355711dc88a Use UTF-16 UniCode VK key names JogAmp jogl: b13868b612689307ebf4e46ee4ede2fd0560e504 Singed-off-by: Xerxes Rånby <[email protected]>
* | Fix JOAL alGenSources channel initialization.Xerxes Rånby2012-12-061-2/+5
| | | | | | | | | | | | | | Negative sourceId is ok. Use alGetError to detect failed initialization. Signed-off-by: Xerxes Rånby <[email protected]>
* | Fix static initialization of JOAL.Xerxes Rånby2012-12-062-19/+27
| | | | | | | | Signed-off-by: Xerxes Rånby <[email protected]>
* | NEWTKBD: Handle VK_SPACESven Gothel2012-10-281-3/+3
| |
* | Mesh.GL_DrawAliasFrameLerp() / Main.R_DrawParticles(): Re-enable ↵Sven Gothel2012-10-232-4/+4
| | | | | | | | | | | | | | EnableClientState(GL_VERTEX_ARRAY) Jake2 authors commented out enabling the VERTEX_ARRAY client state since originally it won't get disabled. However, using the ImmModeSink will disable it and hence missing objects will be the results.
* | JoglGL2ES1: Remove ctor arg hasPointExt, since it's impl. in FFP Emul.Sven Gothel2012-10-234-30/+11
| |
* | Cleanup: Revert minor (semantic) differences introduced in ↵Sven Gothel2012-10-236-15/+17
|/ | | | f5612e7dfc635359f15b402c2ee9022a5e703a9d, in search of regression introduced w/ same commit
* Fix/Enhance NEWT ScreenMode (FS) integration, simplify NEWTWin creationSven Gothel2012-10-1914-195/+184
| | | | | | | | | - Only list unique resolutions - Use List<ScreenMode> - Properly deactivateGLContext()/activateGLContext() for setMode(..) Further: - JoglES2Driver: Claim to have pointExt (FFP emul will follow up)
* Added JOGL2 Flags (README/Jake2.sh), New JOGL Renderer Order, ..Sven Gothel2012-10-1910-32/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | New JOGL Renderer Order, last comes first if not defined by 'vid_ref': - jogldummy - joglgl2 - jogles2 - jogles1 +++ README JOGL2 Flags: JOGL Renderer can be set via 'vid_ref', i.e. '+set vid_ref jogles2' - jogles1 ES1 renderer, may use GL2ES1 w/ 'jogl_gl2es1 1' - jogles2 ES1 renderer, may use GL2ES2 w/ 'jogl_gl2es2 1' - joglgl2 GL2 renderer, maybe disabled w/ 'jogl_gl2 0' - jogldummy NOP GL renderer to measure performance w/o GL costs Special GLProfile selection flags: - jogl_gl2 0 disable joglgl2, default enabled '1' - jogl_gl2es1 1 allow desktop GL2ES1 for jogles1 renderer, default disabled '0' - jogl_gl2es2 1 allow desktop GL2ES2 for jogles2 renderer, default disabled '0' Special drawable surface flags: - jogl_rgb565 1 requesting a RGB565 surface, otherwise request default RGB888 surface
* NEWTWin: Fix NPE if Screen is not initialized yet (fullscreen mode)Sven Gothel2012-10-181-1/+4
|
* NEWTWin: FPS dump on ARM more frequently :)Sven Gothel2012-10-181-2/+13
|
* JoglGL2ES1: Comment out GL_QUADS (not used), Remove ext ↵Sven Gothel2012-10-181-5/+15
| | | | GL_EXT_point_parameters if not claimed, ImmModeSink: setResizeElementCount(..) lower than initial value, if no pointExt.
* JoglGL2ES1: Regard 'hasPointExt' (diff ImmModeSink w/ more elements and ↵Sven Gothel2012-10-185-21/+34
| | | | ubytes for particle sim), use new ImmModeSink value conversion.
* Fix QGL for ES1/ES2: Use ushort indices, since uint is n/a on ES1/ES2 profileSven Gothel2012-10-169-24/+34
| | | | glDrawElements(int mode, IntBuffer indices) -> glDrawElements(int mode, ShortBuffer indices)
* Jogl*Driver.shutdown(): Release hold ctx before killing window offthread ↵Sven Gothel2012-10-164-21/+37
| | | | (required since we don't release ctx after each frame)
* GL2ES1: Add GL_EXT_point_parameters caps for ES1 GL driverSven Gothel2012-10-161-2/+4
|
* Remove Oracle JDK plugin.jar dependencySven Gothel2012-10-161-3/+4
|
* JoglGL2ES1: ImmModeSink: Drop color components (not used), ↵Sven Gothel2012-10-161-3/+11
| | | | initialElementSize == 4 (max in jake2, save memory); DrawElements w/ indices: Add GL_QUADS case
* Adding jogldummy (dummy GL driver (no calls), but w/ NEWT and actual ↵Sven Gothel2012-10-158-7/+419
| | | | [not-used] GL context), remove GL ctx switch for GL2, ES2 and ES1
* JoglES2Driver: Use FFP COLOR_TEXTURE2, restrict shader resources for mobileSven Gothel2012-10-131-1/+1
|
* Renderer: Catch all exceptions (Throwables) .. to cont. w/ avail driver ↵Sven Gothel2012-10-131-6/+9
| | | | (i.e. no GL2 on mobile)
* Renderer: Remove LwjglRenderer (doesn't exist anymore), New Jogl Renderer ↵Sven Gothel2012-10-121-10/+4
| | | | default order 1) GL2ES2 2) GL2ES1 3) GL2 (to please mobile)
* Enabling GL2ES1 and GL2ES2 driver, using JOGL's ImmModeSink and ↵jogl2_es2Sven Gothel2012-10-1210-1559/+2084
| | | | | | | | | FixedFunctionPipeline to complete each profile GL2ES1 uses ImmModeSink GL2ES2 uses ImmModeSink and FixedFunctionPipeline TODO: Updated JOGL contained binaries w/ next aggregated build (please use the source until then)
* Simple NEWT port: Remove AWT dependencies in Jake2 / JOGL / Fast (default ↵NEWTSven Gothel2012-10-0831-663/+1489
| | | | | | | | | | | | | | | mode) - Prepare for ES2 - Removed AWT init dialog, replaced w/ UI less auto install if n/a @ default location: $HOME/Jake2/baseq2 - JOGL GL2 Renderer 'joglgl2' - JOGL ES2 Renderer 'jogles2' (TBD) - Replaced JOGLKBD (AWT) w/ NEWTKBD - JOGL* Renderer using NEWT
* Remove lwjglSven Gothel2012-10-087-2273/+0
|
* JoglDriver: Add FPSCounter (all 60*5 frames) ; Remove glFlush() @ endFrame, ↵jogl2_gl2Sven Gothel2012-10-081-1/+6
| | | | doing swapBuffer already
* Simple JOGL2 port: Disable autoSwapBufferMode of GLCanvas (double swap == ↵Sven Gothel2012-10-071-3/+6
| | | | flicker); force display() when displayable (otherwise GL resources are not realized on windows)
* Simple JOGL2 portSven Gothel2012-10-0710-1620/+567
| | | | | | | | | | - Remove _very_ old JOGL port (net.java.games.jogl.GL) - Rename Jsr231* -> Jogl* - Port Jsr231 to Jogl2: - package rename of jogl/joal - use AWT GLCanvas derivation instead of partially reimplementing it in JoglDriver - drop some EXT suffixes - name driver 'jogl2'
* unused variablesjogl1Rene Stoeckel2009-12-132-4/+2
|
* unused variablesRene Stoeckel2009-12-135-12/+8
|
* unused importsRene Stoeckel2009-12-131-3/+0
|
* stronger typingRene Stoeckel2009-12-131-1/+1
|
* Set background of Jake2Applet to black before fully initializedKenneth B. Russell2008-03-021-1/+8
|
* Changes to enable Jake2 to run well as an applet inside the Kenneth B. Russell2008-03-028-108/+511
| | | | | | | | | | | | | | | | | | | | | 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.
* bugfix: cast the space to byte avoid array overflowsCarsten Weisse2008-03-021-2/+2
|
* formattedCarsten Weisse2008-03-022-85/+92
|
* the callback renderer is never usedCarsten Weisse2008-03-023-701/+4
|
* better javadocCarsten Weisse2008-03-021-1/+1
|
* changes to handle resizable screens.Carsten Weisse2008-03-021-10/+31
| | | | GridBagLayout is used to resize the GL canvas together with the frame
* use getters and setters of modified viddef_tCarsten Weisse2008-03-0213-577/+580
|
* changes to handle resizable screensapplet-supportCarsten Weisse2008-03-021-4/+37
|
* inline cursornameCarsten Weisse2008-03-021-13/+4
|
* makes the reference constantCarsten Weisse2008-03-011-1/+1
|
* set new window location only in fullscreen modeCarsten Weisse2007-11-033-6/+4
|