Commit Graph

364 Commits

Author SHA1 Message Date
Elias Naur 2d5ff5d23d *** empty log message *** 2004-07-03 14:41:06 +00:00
Elias Naur 48f01cf614 Split WGL out to extgl_wgl.cpp/h 2004-07-03 14:39:29 +00:00
Elias Naur fa45b4dc78 Win32 part of Display/Window merge 2004-07-03 11:29:44 +00:00
Elias Naur 86ddd2a579 *** empty log message *** 2004-07-03 11:16:59 +00:00
Elias Naur 0ea7ab410f Win32 part of Display/Window merge 2004-07-03 10:42:29 +00:00
Elias Naur 475d22e73b WIN32: Pbuffer pixel format must be single buffered 2004-07-03 10:36:26 +00:00
Elias Naur e59ed5d906 Win32 part of Display/Window merge 2004-07-03 10:16:28 +00:00
Elias Naur 84110e9c13 Linux part:
Merged Window and Display into org.lwjgl.Display
Added support for persistent context. This will enable LWJGL games
to avoid recreating the context resources like textures and display
lists when switching between windowed and fullscreen and/or context
dimensions.

Added PixelFormat class instead of individual parameters to Display.create
and Pbuffer constructor.
2004-07-02 19:02:00 +00:00
Elias Naur d03916ebec Added InitWGL after creating Anti Aliased context 2004-07-02 12:34:33 +00:00
Brian Matzon 4cea3e191b header unification 2004-06-12 20:28:34 +00:00
Brian Matzon 3a7df43117 removed obsolete getPlatform 2004-06-09 19:45:15 +00:00
Caspian Rychlik-Prince 7593877a42 No longer uses ARB pixel formats when samples == 0 2004-05-26 14:41:12 +00:00
Brian Matzon 9ed3aa45e2 only get driver once 2004-05-23 13:54:55 +00:00
Elias Naur 0786d857f8 Potential fix for the titlebar issue on win2k 2004-05-14 12:52:39 +00:00
Elias Naur 25c8f8c313 Removed C++ exception handlers 2004-05-10 08:55:09 +00:00
Caspian Rychlik-Prince b697fb3ecf Removed Sys.setTime(), Sys.getPlatform()
Changed Sys.getTime()
Added Display.sync()
2004-05-05 14:28:40 +00:00
Caspian Rychlik-Prince 3bb53392f6 Added some win32 timing tweaks 2004-05-05 13:26:21 +00:00
Elias Naur e1656b862b Win32: Added missing throwException in Controller.cpp 2004-05-05 11:30:51 +00:00
Elias Naur 7bd59ed27d Split global DirectInput interface into 3 interfaces in Mouse, Keyboard and Controller 2004-05-05 09:53:53 +00:00
Elias Naur 8099826ab7 Throw exception when win32 can't create DirectInput for some reason 2004-05-04 18:58:09 +00:00
Elias Naur 054e1f9f29 Attempt fix for out of focus mouse bug in win32 2004-05-04 18:47:47 +00:00
Brian Matzon a9506354ee fixed mouse issues, setGrabbed & native cursor now works (afaik ;)) 2004-04-12 14:46:18 +00:00
Brian Matzon 84eae4c6f6 removed restriction about native cursors, and fixed mouse not showing on setNativeCursor(null); 2004-04-12 10:37:50 +00:00
Brian Matzon 86eb042b81 reworked animated native cursors, to use X animation when required
added initial setGrabbed(boolean) feature - Work in progress
both needs verification on linux
2004-04-12 00:33:01 +00:00
Elias Naur 8065870592 Removed Keyboard.initIDs 2004-04-07 07:48:37 +00:00
Elias Naur b3b2c4a145 win32 fixup 2004-04-06 14:40:36 +00:00
Elias Naur bf8cce9b59 Make poll deltas accumulative, and only reset on getD* 2004-04-06 14:23:19 +00:00
Elias Naur 40373ec422 Reverted the dirty flag change, because it might be used as a flag to check if the back buffer is corrupted when creating textures from the it. You can't just swap the back buffer in to clear the flag in that case. So we need the flag to be cleared also when isDirty is called 2004-04-04 14:09:12 +00:00
Caspian Rychlik-Prince bd0091b8d9 *** empty log message *** 2004-04-04 13:38:18 +00:00
Caspian Rychlik-Prince 85130ebd90 Rules with mighty fist. New API killed off before it even sees light of day. Some refactoring. 2004-04-04 12:53:45 +00:00
Elias Naur b0a9be7721 Fixed a possible buffer overflow bug in Mouse 2004-04-04 07:37:22 +00:00
Caspian Rychlik-Prince 37262e6727 New window sizing & undecorated code 2004-04-03 23:01:39 +00:00
Elias Naur 021e03eea5 Implemented version check to check for incompatible native libraries 2004-03-27 14:09:55 +00:00
Elias Naur 8a2d246060 Saved input events for win32 2004-03-26 21:49:10 +00:00
Elias Naur af6c61c241 Use the actual buffer size in nPoll 2004-03-23 07:47:39 +00:00
Brian Matzon bb51e3dc23 Cursor animation support regardless of platform features 2004-03-21 21:54:57 +00:00
Brian Matzon 3b875b1781 support for 'org.lwjgl.opengl.Window.allowSoftwareOpenGL'
added utility getBooleanProperty method
2004-03-11 21:30:48 +00:00
Elias Naur 22ef574871 *** empty log message *** 2004-03-11 19:50:42 +00:00
Brian Matzon 015ce9e37d don't forget 98+! 2004-03-10 16:52:31 +00:00
Brian Matzon 4746f40991 optimized mode detection 2004-03-10 16:47:04 +00:00
Ioannis Tsakpinis d49ce2bfc0 render-to-texture support 2004-03-02 01:59:32 +00:00
Brian Matzon e05e891e99 *puff* 2004-02-26 21:39:27 +00:00
Caspian Rychlik-Prince 6a58bc26e6 New context management code (incomplete) 2004-02-23 23:42:58 +00:00
Caspian Rychlik-Prince 5356e13feb New Context stuff 2004-02-18 17:48:26 +00:00
Brian Matzon 9b929c0cf3 make isFocused & isMinimized work as expected
cleaned up field usage
2004-02-17 16:57:23 +00:00
Elias Naur fd56dd232a Added WGL_ARB_multisample support 2004-02-15 19:24:03 +00:00
Elias Naur 5c3e17c8a3 Added GLX_ARB_multisample support to Pbuffers 2004-02-15 15:46:10 +00:00
Elias Naur e3a4f5f7f7 Added GLX_ARB_multisample support 2004-02-15 15:27:02 +00:00
Elias Naur 883149878b Added aldacron's ghost window fix, a ShowWindow(hwnd, SW_HIDE) before destroying the window 2004-02-10 08:31:38 +00:00
Elias Naur d756657a48 Changed GetDeviceCaps(dc, COLORRES) to use BITSPIXEL instead 2004-01-26 19:57:18 +00:00
Brian Matzon 8bcedbffe0 removed \n 2004-01-12 17:24:47 +00:00
Brian Matzon 6f44f03381 make controller work again! 2004-01-12 17:21:56 +00:00
Brian Matzon ea4fed18c4 assert that Window has been created 2004-01-12 17:15:41 +00:00
Brian Matzon 9dd52c6559 assert that Direct Input has been created 2004-01-12 16:28:51 +00:00
Elias Naur ad28763347 *** empty log message *** 2003-12-20 22:23:15 +00:00
Elias Naur 790b01a01b Reduced Sys.debug from bool -> int 2003-12-20 22:03:25 +00:00
Elias Naur fb8fd0a2d7 Implemented proper debug levels 2003-12-20 14:01:31 +00:00
Elias Naur 472b5337d4 Replaced debug libraries with runtime debug condition 2003-12-15 11:49:17 +00:00
Elias Naur 533fb6882f Native cursor fix in win32 2003-11-23 12:52:08 +00:00
Elias Naur 1f9f7365a0 Win32 window creation tweaks 2003-11-17 07:45:14 +00:00
Caspian Rychlik-Prince e640620e94 Removed some annoying debugging 2003-11-10 01:41:57 +00:00
Caspian Rychlik-Prince a4facc93f0 *** empty log message *** 2003-10-28 19:26:51 +00:00
Caspian Rychlik-Prince 754f917730 New Sys.openURL command added 2003-10-28 16:23:17 +00:00
Elias Naur 5f89be0e63 Fixed Mac OS X mouse button mapping 2003-10-25 21:27:54 +00:00
Elias Naur b00c24ef76 Fixed ARBFragmentProgram and ARB_vbo 2003-10-23 07:18:07 +00:00
Elias Naur 8cabcd523f *** empty log message *** 2003-10-22 18:34:42 +00:00
Elias Naur 0f1d70a6ec *** empty log message *** 2003-10-22 11:45:51 +00:00
Caspian Rychlik-Prince 2714842095 New vsync code 2003-10-20 14:17:47 +00:00
Elias Naur a6c56bd791 *** empty log message *** 2003-10-14 14:29:23 +00:00
Elias Naur 15dafb1c5a Don't return from UpdateMouseFields on failure to acquire - still need to set deltas to 0 2003-10-14 12:42:05 +00:00
Elias Naur 963605989f Implemented mouse button buffering 2003-10-11 16:29:40 +00:00
Elias Naur 0fa67c9680 Fixed mouse hot spot coordinate 2003-10-11 12:56:26 +00:00
Elias Naur 43b2d67a71 Moved native cursor origin to middle of the window 2003-10-11 11:03:06 +00:00
Caspian Rychlik-Prince 9ac5e7a530 Minor casting adjustment to work around a compiler bug 2003-10-08 10:56:24 +00:00
Elias Naur fc925baab4 *** empty log message *** 2003-10-08 07:49:43 +00:00
Elias Naur 14d023ed09 *** empty log message *** 2003-10-07 14:28:33 +00:00
Elias Naur aa9e183c7f *** empty log message *** 2003-10-07 13:10:17 +00:00
Elias Naur 89b631746c *** empty log message *** 2003-10-06 08:34:03 +00:00
Elias Naur 1ba24e9bdf *** empty log message *** 2003-09-30 11:52:32 +00:00
Elias Naur 6d8991f7dd *** empty log message *** 2003-09-30 11:14:06 +00:00
Caspian Rychlik-Prince 307755b07c New API for adapter queries 2003-09-28 06:55:01 +00:00
Caspian Rychlik-Prince 17b6a501e4 Changed from wglSwapBuffers back to SwapBuffers. 2003-09-26 16:26:10 +00:00
Elias Naur 42ad1026af Don't ignore lying drivers 2003-09-26 13:59:50 +00:00
Caspian Rychlik-Prince b28860eb71 Gamma back in 2003-09-16 15:42:25 +00:00
Elias Naur f67cd0e384 Tried harder to fix NT display mode selection 2003-09-16 08:29:16 +00:00
Elias Naur fe1d693b81 ifdef'ed some debug printfs 2003-09-11 08:00:28 +00:00
Caspian Rychlik-Prince 6551d03cd4 More fixes 2003-09-10 22:55:25 +00:00
Caspian Rychlik-Prince 392663d590 Fixed compile error 2003-09-10 22:41:17 +00:00
Caspian Rychlik-Prince e92a54db87 Repaired gamma code. 2003-09-10 22:39:46 +00:00
Elias Naur 9148cb7c90 Fixed display mode code paths 2003-09-10 22:35:06 +00:00
Caspian Rychlik-Prince ecb0045241 Fixed code in display enumeration. 2003-09-02 11:30:36 +00:00
Elias Naur ba3acc79b9 Committed spelling fixes 2003-08-29 08:00:44 +00:00
Brian Matzon f27e5a294c fix: isStateKeySet now returning int 2003-08-23 09:45:22 +00:00
Brian Matzon 61305f4107 added isStateKeySet for checking LOCK keys 2003-08-19 15:15:00 +00:00
Elias Naur da4eb5d83e *** empty log message *** 2003-08-17 18:40:58 +00:00
Elias Naur a8826b4b12 update->updateState 2003-08-17 18:17:20 +00:00
Brian Matzon 4f39c59b45 renamed updateStatus to update 2003-08-17 14:10:53 +00:00
Brian Matzon 7e283db15c mod: tick is now called updateState - bitch all you will :p 2003-08-17 09:27:32 +00:00
Elias Naur c8f38ac9b7 Flipped cursor coordinates to match OpenGL 2003-08-11 16:35:45 +00:00
Caspian Rychlik-Prince 0886f84ed8 *** empty log message *** 2003-08-07 21:53:06 +00:00
Elias Naur 683991fe79 Added buffer positions to Cursor 2003-08-05 20:07:32 +00:00
Elias Naur 35a1538f82 Implemented safe VBO indices (phew) 2003-08-04 23:00:49 +00:00
Elias Naur d359a6b7e1 *** empty log message *** 2003-08-04 10:09:40 +00:00
Caspian Rychlik-Prince 85c528039c *** empty log message *** 2003-08-03 22:10:03 +00:00
Elias Naur f7ce5c39ed Improved createIndexBuffer 2003-08-03 16:19:09 +00:00
Elias Naur 3f18bd15c4 Removed Sys.NULL 2003-08-03 11:02:57 +00:00
Elias Naur 907d5f083d Converted various GL sizes to buffer.remaining() 2003-08-02 15:21:55 +00:00
Caspian Rychlik-Prince 81b9e0795c *** empty log message *** 2003-08-02 10:56:25 +00:00
Elias Naur baa39830c0 Renamed Sys.createARBVBOBuffer to Sys.createIndexBuffer 2003-07-29 11:09:44 +00:00
Elias Naur 8b9931560f Moved GL capabilities to GLCaps 2003-07-28 10:09:58 +00:00
Caspian Rychlik-Prince 2bd35dbe1d Changed some focus handling code. Works well with Alien Flux. 2003-07-27 13:12:43 +00:00
Elias Naur 579dc64f4f Fixed WGL extension bug 2003-07-26 09:39:48 +00:00
Elias Naur 2579413a64 Fixed native win32 cursor bug 2003-07-24 09:09:24 +00:00
Elias Naur e4aaf66d8c Fixed some int address->Buffer bugs 2003-07-20 19:27:36 +00:00
Elias Naur d8f64cbb15 Separated BaseGL from CoreGL and GL and renamed to GLWindow 2003-07-18 19:02:49 +00:00
Elias Naur 794c802253 Added createARBVBOBuffer to enable VBO indexing with Buffers 2003-07-17 09:16:51 +00:00
Brian Matzon bd9b01eaf8 added support for isFocused 2003-07-16 21:01:34 +00:00
Brian Matzon 999a675be3 fix: compiler whining 2003-07-02 22:42:01 +00:00
Elias Naur 315375dee5 Ported OpenGL to Buffers 2003-06-24 12:24:55 +00:00
Caspian Rychlik-Prince 13edf0ce99 *** empty log message *** 2003-06-12 14:08:10 +00:00
Caspian Rychlik-Prince 7cb8a93fb1 We now restore display settings on minimize. Hurrah! 2003-06-07 19:28:53 +00:00
Elias Naur 71f46bfce9 Fixed win9x keyboard translation 2003-06-07 13:56:06 +00:00
Caspian Rychlik-Prince e148f01ba9 Early exit on failed mouse read. 2003-06-07 12:49:55 +00:00
Caspian Rychlik-Prince 72f2402a7f Minor tweaks to window creation. 2003-06-07 12:48:21 +00:00
Caspian Rychlik-Prince e143541c01 *** empty log message *** 2003-06-07 12:47:35 +00:00
Caspian Rychlik-Prince 5aae56dfcc *** empty log message *** 2003-06-04 22:10:24 +00:00
Elias Naur 16e1d44cdb Implemented gamma, brightness and contrast controls on win32 and linux
using a simplified gamma ramp API
2003-05-27 14:12:10 +00:00
Elias Naur 9bcaa18c3d Implemented Pbuffers on win32 and linux (render to texture will be done later)
Implemented native cursor caps (one bit transparancy, alpha translucency and animations)
2003-05-20 12:20:13 +00:00
Elias Naur e886d95122 Native cursors implemented 2003-05-16 18:39:46 +00:00
Brian Matzon 985c601df9 fix: Controller now works again (window.h was being included, and setting dx version to 3, which doesn't support joysticks) 2003-05-08 21:30:30 +00:00
Brian Matzon 06cf180b71 fix: increased buffersize to correct size (buffering + translation can increase needed size to 200 bytes at most) 2003-05-07 17:17:23 +00:00
Elias Naur b705ea51d0 Removed makeContexCurrent and releaseContext 2003-04-26 06:54:32 +00:00
Brian Matzon 609cdda985 Using EnumDisplaySettingsEx now, to force monitor comparing 2003-04-14 18:17:29 +00:00
Elias Naur 3018edde4c Added Sys.NULL constant 2003-04-03 20:20:29 +00:00
Elias Naur 97bc650a22 Minor win32 fix 2003-03-30 19:53:39 +00:00
Elias Naur d58c8b767b I like those makeContextCurrent/releaseContext... 2003-03-30 19:40:35 +00:00
Elias Naur bc33d3ff2b Linux/win32 changes for 0.6 2003-03-30 19:26:39 +00:00
Caspian Rychlik-Prince 920a67b1ac Stuff for 0.6 2003-03-29 21:52:14 +00:00
Caspian Rychlik-Prince 157e7673cc Big changes for the new 0.6 LWJGL release 2003-03-28 23:16:15 +00:00
Caspian Rychlik-Prince 16d8c3c053 Fixed 2003-03-28 21:04:43 +00:00
Caspian Rychlik-Prince 4924c564d5 *** empty log message *** 2003-03-28 19:02:24 +00:00
Caspian Rychlik-Prince 895c751ec6 New Window class, and major changes to Display 2003-03-28 01:30:34 +00:00
Caspian Rychlik-Prince 419da83107 New Window class, and major changes to Display 2003-03-28 01:28:04 +00:00
Elias Naur 5ac3ea26e8 Fixed mouse clamping 2003-03-23 20:08:49 +00:00
Brian Matzon 95075c3492 fix: VM crash when using > 4 button mouse 2003-03-23 20:00:28 +00:00
Caspian Rychlik-Prince 0cf93ebe93 Fixed nasty bug in Win9x display mode enumeration 2003-03-22 21:39:52 +00:00
Caspian Rychlik-Prince c6a231cf43 New getPlatform() method added 2003-03-21 17:08:26 +00:00
Caspian Rychlik-Prince 8575ae0496 New getPlatform() method added 2003-03-21 16:57:56 +00:00
Caspian Rychlik-Prince c1fd8957df New getPlatform() method added 2003-03-21 16:53:19 +00:00
Elias Naur 0d620e9125 Reverted display mode selection 2003-03-19 12:41:28 +00:00
Caspian Rychlik-Prince df1d611624 Fixed JNI error 2003-03-18 16:38:31 +00:00
Brian Matzon 0060b68efd fix: dragging of window doesn't work, when returning directly from unhandled WM_SYSCOMMAND - so let's not do that! 2003-03-17 18:40:56 +00:00
Caspian Rychlik-Prince c6c2cdcafc Tweaked but little else 2003-03-07 16:01:27 +00:00
Brian Matzon e78cdd5029 fix: removed GlobalRef
fix: now sets fields to JNI_TRUE/JNI_FALSE respectively
2003-03-07 15:23:58 +00:00
Caspian Rychlik-Prince 0f88a2131b *** empty log message *** 2003-03-06 22:55:13 +00:00
Brian Matzon 310526a254 wip fix: buttons array now being ref'ed from native side to avoid GC'ing 2003-03-06 20:55:13 +00:00
Brian Matzon ccba1c3f79 fix: won't be needing hashmaps from native side 2003-03-04 06:08:53 +00:00
Brian Matzon 02aa0e7a1a fix: small beautification 2003-03-03 21:51:13 +00:00
Brian Matzon 12b7c4dd85 fix: now enumerates multiple displaydevices, if available 2003-03-03 21:49:46 +00:00
Brian Matzon db7b3a9cf5 fix: no longer fatal to not acquire input 2003-03-01 21:39:31 +00:00
Elias Naur 4677a35556 Fixed a buffer overflow problem in d�z 2003-02-20 15:13:37 +00:00
Elias Naur eeef8c62ed replaced PeekMessage() -> handleMessages() 2003-02-13 15:32:15 +00:00
Elias Naur 68045ce08f Don't allow the mouse to drift when failing poll 2003-02-12 12:11:05 +00:00
Elias Naur dcaaccc138 Don't allow to show the window menu 2003-02-12 12:07:50 +00:00
Elias Naur a36f15cc0e Don't return -1 on keyboard read failure 2003-02-12 11:27:48 +00:00
Elias Naur eb7e142b67 Don't return -1 on keyboard read failure 2003-02-12 09:55:17 +00:00
Elias Naur e44b4f43f0 added check for software only modes 2003-02-12 09:33:11 +00:00
Elias Naur 1e8061c22d replaced wglSwapLayerBuffers -> SwapBuffers 2003-02-12 09:29:07 +00:00
Brian Matzon 3a28d769a7 fix: releasing device context for window, as per msdn docs 2003-02-10 22:13:46 +00:00
Brian Matzon eb21d12e86 fix: using own DI instance since we've been horking the one created from display, which when not horked cannot be used, since it does not work with dx3+
fix: changed to use firstime initialization logic like mouse
2003-02-09 19:54:04 +00:00
Brian Matzon facd783e4f fix: behave with Controller 2003-02-09 19:51:53 +00:00
Brian Matzon 3eaca27fd7 mod: some formatting
fix: allow creation of mouse more than one time
2003-02-09 19:18:31 +00:00
Brian Matzon 8cd9882280 fix: moved handleMessages to its rightfull place 2003-02-08 23:25:11 +00:00
Brian Matzon 9a9406dc7e add: close button enabled 2003-02-08 23:01:58 +00:00
Brian Matzon ac29cf9acd mod: renaming of most methods/fields due to name clashes with Mouse
fix: check for DIERR_NOTACQUIRED when loosing focus
fix: check for controller failed, and would crash VM if no controller could be found
2003-02-08 19:31:19 +00:00
Brian Matzon 7c2dac8ebd fix: make mouse actually behave! 2003-02-08 19:30:53 +00:00
Brian Matzon 956968e092 new Mouse implementation, rewritten to better fit Controller structure 2003-02-08 19:30:23 +00:00
Elias Naur 6435369d23 Removed dead code 2003-02-08 16:33:00 +00:00
Brian Matzon f05f16cc27 added minimize button, disabling close button since we have no mechnism to notify the user of a close 2003-02-08 01:02:34 +00:00
Caspian Rychlik-Prince 247be0d0d2 *** empty log message *** 2003-02-07 23:21:01 +00:00
Caspian Rychlik-Prince 2e3f28b029 *** empty log message *** 2003-02-07 21:54:31 +00:00
Caspian Rychlik-Prince 5ea14c3919 *** empty log message *** 2003-02-06 18:26:04 +00:00
Elias Naur 8343e2a0cc Added win32 alpha check 2003-01-31 19:04:45 +00:00
Brian Matzon 99e22aa0b4 added rotational axis too 2003-01-23 21:38:33 +00:00
Brian Matzon 9cdf5d7156 small comment on using z axis as slider 2003-01-23 21:14:04 +00:00
Brian Matzon e781a7c83d new and improved version - w00t 2003-01-23 21:11:16 +00:00
Elias Naur 1b3d0278f9 Added keyboard translation to linux and win32 2003-01-11 23:09:38 +00:00
Brian Matzon 988f115218 Joystick replaced by Controller
GamePad no modelled as a controller
2003-01-03 18:47:42 +00:00
Caspian Rychlik-Prince f4165f634e Fixed? 2002-12-23 13:23:29 +00:00
Elias Naur a5ab6c385b Fixed win32 display bug 2002-12-22 20:31:22 +00:00
Caspian Rychlik-Prince 18f8302668 Alert code & new displaymode code 2002-12-22 19:52:44 +00:00
Brian Matzon b6b3d6e1d0 die die DIE!!! 2002-12-21 23:01:31 +00:00
Elias Naur 1f3f00aed1 Moved BaseGL constructor parameters to Display 2002-12-19 16:35:35 +00:00
Elias Naur 040d03dca4 Fixed the RegisterClass call 2002-12-18 16:40:12 +00:00
Elias Naur 450ff067cf Added a standard system error output 2002-12-14 15:23:53 +00:00
Elias Naur b7de8b69dc Added more pixelformat tests to win32 2002-12-12 22:04:05 +00:00
Elias Naur 38438f6716 Moved print of extensions to debug version 2002-12-12 20:06:15 +00:00
Elias Naur ede753c419 Removed a printf 2002-12-12 20:04:56 +00:00
Elias Naur 7184576886 Fixed a mouse button state array bug 2002-12-12 19:51:20 +00:00
Elias Naur ff770dee4d Added ReleaseContext to win32 2002-12-11 10:14:08 +00:00