aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/opengl
Commit message (Collapse)AuthorAgeFilesLines
* Remove workaround for Bug 798HEADmasterSven Gothel2013-07-241-4/+0
|
* Add Applet Feature incl. required fixes.Sven Gothel2013-06-286-77/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-276-32/+34
| | | | | | - 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.
* 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-231-0/+1
| | | | f5612e7dfc635359f15b402c2ee9022a5e703a9d, in search of regression introduced w/ same commit
* Fix/Enhance NEWT ScreenMode (FS) integration, simplify NEWTWin creationSven Gothel2012-10-197-148/+121
| | | | | | | | | - 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-196-13/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-184-20/+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-165-11/+11
| | | | 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
|
* 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-155-6/+156
| | | | [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
|
* Enabling GL2ES1 and GL2ES2 driver, using JOGL's ImmModeSink and ↵jogl2_es2Sven Gothel2012-10-125-97/+345
| | | | | | | | | 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-087-454/+811
| | | | | | | | | | | | | | | 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-082-642/+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-074-1068/+341
| | | | | | | | | | - 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'
* Changes to enable Jake2 to run well as an applet inside the Kenneth B. Russell2008-03-021-82/+137
| | | | | | | | | | | | | | | | | | | | | 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.
* the callback renderer is never usedCarsten Weisse2008-03-021-363/+0
|
* changes to handle resizable screens.Carsten Weisse2008-03-021-10/+31
| | | | GridBagLayout is used to resize the GL canvas together with the frame
* set new window location only in fullscreen modeCarsten Weisse2007-11-033-6/+4
|
* a better display mode selection (can handle strange frequencies)Carsten Weisse2007-02-141-2/+4
|
* add setSwapInterval() for vsync (works on Win32 and Mac OS X) turn it off ↵Carsten Weisse2007-01-116-1/+39
| | | | on console: gl_swapinterval 0 turn it on: gl_swapinterval 1
* add glHint(int target, int mode) e.g. for perspective correction hintCarsten Weisse2007-01-107-66/+90
|
* update to lwjgl 1.0 rc1 (org.lwjgl.util.GL was removed)Carsten Weisse2007-01-101-71/+69
|
* format onlyCarsten Weisse2006-12-121-40/+40
|
* NPE bugCarsten Weisse2006-12-111-2/+2
|
* exit thread removed because of linuxCarsten Weisse2006-12-111-35/+26
|
* hope this helps on win32 screen mode switchingCarsten Weisse2006-12-111-1/+7
|
* hope this helps on win32 screen mode switchingCarsten Weisse2006-12-111-8/+9
|
* hope this helps on win32 screen mode switchingCarsten Weisse2006-12-111-21/+33
|
* hope this helps on win32 screen mode switchingCarsten Weisse2006-12-111-27/+49
|
* destroy gl context in the canvas removeNotifyCarsten Weisse2006-12-111-9/+4
|
* destroy window in the main threadCarsten Weisse2006-12-111-5/+5
|
* destroy window in the awt event dispatcher threadCarsten Weisse2006-12-111-12/+21
|
* typoCarsten Weisse2006-12-111-1/+1
|
* add a new renderer which uses the jsr231 callback interface (GLEventListener)Carsten Weisse2006-12-111-0/+364
|
* unused resize removedCarsten Weisse2006-12-071-5/+1
|
* not compatible with java 1.4Carsten Weisse2006-11-301-2/+1
|
* hope this solves the pixel displacement problem on some Win32 systemsCarsten Weisse2006-11-301-2/+3
|
* hope this solves the pixel displacement problem on some Win32 systemsCarsten Weisse2006-11-301-2/+8
|
* clear first and second buffer of GLContextCarsten Weisse2006-11-291-1/+7
|
* hope this solves the pixel flicker problem on some Win32 systemsCarsten Weisse2006-11-291-5/+11
|