Commit Graph

687 Commits

Author SHA1 Message Date
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 926121d83f fix: make it compile 2003-07-16 21:17:13 +00:00
Brian Matzon 491133c7f1 "fix": deactivate EAX for this test release 2003-07-16 21:16:36 +00:00
Elias Naur 1526ad3a2a Added linux focus support 2003-07-16 21:10:28 +00:00
Brian Matzon 1080e1344b fix: isClosedRequested now sets flag to false after call
added support for isFocused
2003-07-16 21:02:48 +00:00
Brian Matzon bd9b01eaf8 added support for isFocused 2003-07-16 21:01:34 +00:00
Elias Naur 63e3ef67fd Small error message fix 2003-07-15 14:02:39 +00:00
Elias Naur 143067127d Reverted change 2003-07-06 22:43:05 +00:00
Elias Naur 6bf70d35c7 Converted ogl to static constructor 2003-07-06 21:47:30 +00:00
Brian Matzon cdd4c044ba fix: javadoc typo 2003-07-06 19:59:57 +00:00
Elias Naur 074b80c06c Linux build fix 2003-07-06 08:00:22 +00:00
Brian Matzon 6e0ffd144d removing parts of Math 2003-07-05 23:59:44 +00:00
Brian Matzon cb23db8c47 removing parts of Math
removing examples
removed small doc
2003-07-05 23:58:34 +00:00
Brian Matzon f14e76ab8f fix: using type specific buffers 2003-07-05 23:13:09 +00:00
Elias Naur 2348040680 linux build fix 2003-07-05 22:19:51 +00:00
Elias Naur 55cb0bad92 fixed compiler warning 2003-07-05 21:58:35 +00:00
Brian Matzon e8a6ecb69c fix: removed debug 2003-07-04 14:29:02 +00:00
Brian Matzon 0b5722b3fb static implementation - work in progress 2003-07-02 22:42:41 +00:00
Brian Matzon 999a675be3 fix: compiler whining 2003-07-02 22:42:01 +00:00
Brian Matzon 1b06cc27cb bugger off buffer! 2003-07-02 22:37:45 +00:00
Brian Matzon 4c4d56e583 static implementation - work in progress 2003-07-02 22:35:26 +00:00
Elias Naur 315375dee5 Ported OpenGL to Buffers 2003-06-24 12:24:55 +00:00
Brian Matzon 2305247ac1 old resource loading was buggy? 2003-06-17 21:24:48 +00:00
Brian Matzon fa26d83aae using default file on no argument (allows easier JWS interaction) 2003-06-17 21:22:16 +00:00
Brian Matzon 1cdc9f9b15 using classloader to load files 2003-06-17 21:21:11 +00:00
Brian Matzon dc25f2fb17 reset displaymode when done 2003-06-17 21:19:59 +00:00
Brian Matzon cafa7452aa add simple keyboard test - for completeness sake - needs to be made better 2003-06-17 21:18:44 +00:00
Elias Naur 0698e68911 *** empty log message *** 2003-06-16 17:07:35 +00:00
Elias Naur 2107cdc40c Cleaned up JWS openal loading 2003-06-16 17:05:48 +00:00
Brian Matzon 40564b8cee fix: linux findLibrary failed because invalid lib name was passed 2003-06-16 16:57:25 +00:00
Brian Matzon 3f54bac547 fix: Java Web Start loading of OpenAL 2003-06-15 22:35:27 +00:00
Caspian Rychlik-Prince bf2ff00518 *** empty log message *** 2003-06-12 15:19:31 +00:00
Caspian Rychlik-Prince 13edf0ce99 *** empty log message *** 2003-06-12 14:08:10 +00:00
Elias Naur 2e30eff2a5 Try to return a better minimum cursor size 2003-06-08 14:32:30 +00:00
Elias Naur 34aeff1757 Try to return a better minimum cursor size 2003-06-08 14:30:53 +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
Elias Naur 6e73a7a953 Doc update 2003-06-07 11:53:17 +00:00
Caspian Rychlik-Prince 5aae56dfcc *** empty log message *** 2003-06-04 22:10:24 +00:00
Caspian Rychlik-Prince bf72447cec *** empty log message *** 2003-06-04 21:49:46 +00:00
Elias Naur 023e1df80d Added gamma debug output 2003-06-01 17:26:02 +00:00
Elias Naur c267f6d5da Linux fixes 2003-06-01 17:20:03 +00:00
Brian Matzon 4cdf7f855d fix: removed superfluous import statement 2003-06-01 11:02:35 +00:00
Elias Naur 18685ab806 Added USEGLX13 to BaseGL.cpp 2003-05-30 16:29:17 +00:00
Elias Naur e66f5dee8a More Display checks 2003-05-30 14:44:45 +00:00
Elias Naur 66a2676652 Extra checks in window creation 2003-05-30 06:10:33 +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 30df047153 Doc fix: gamma arrays are three arrays, not one consecutive 2003-05-26 18:29:44 +00:00
Elias Naur e11f941056 Doc fix: Gamma changes are undone at resetDisplayMode 2003-05-26 18:26:10 +00:00
Scott W Palmer 1ae6e9e862 oops missed double buffer attribute 2003-05-23 04:21:09 +00:00
Scott W Palmer 79823229f9 fixed sporadic Bus Error in GetAvailableDisplayModes 2003-05-23 03:07:46 +00:00
Elias Naur 5411e23b7a Native cursor fixes 2003-05-20 14:28:30 +00:00
Scott W Palmer a104d020d0 Stubs for OS X 2003-05-20 14:00:18 +00:00
Scott W Palmer 6612643fec minor cleanup 2003-05-20 13:59:58 +00:00
Elias Naur ccc115fe9d Native cursor fixes 2003-05-20 13:59:30 +00:00
Scott W Palmer b9a7d26cb4 minor cleanup 2003-05-20 13:51:46 +00:00
Scott W Palmer 503f031b15 fixed some more initialization issues 2003-05-20 13:48:44 +00:00
Elias Naur 4c53756e7b Cursor fixes 2003-05-20 12:33:51 +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 586c0f4647 Fixes 2003-05-19 08:54:46 +00:00
Elias Naur 9d612fc88b Fixes 2003-05-19 08:53:47 +00:00
Scott W Palmer 41f562676f fixed some initialization issues 2003-05-19 02:56:54 +00:00
Elias Naur a1649bab3f Min cursor size 1, not 0 2003-05-17 08:06:39 +00:00
Scott W Palmer a360d24047 Mac OS X Support - untested 2003-05-17 02:50:51 +00:00
Elias Naur e886d95122 Native cursors implemented 2003-05-16 18:39:46 +00:00
Elias Naur fd75f7a959 Added debug output when dynamic library load fails 2003-05-11 11:51:08 +00:00
Gregory Pierce 8ae528efe0 Added in double buffering and added in the capability to actually swapBuffers with CGFlushDisplay() which will copy the back to the front. 2003-05-10 22:02:19 +00:00
Gregory Pierce 2eccb0f4ce Change to use the actual refresh rate from the display in the init call instead of setting it to 60. It doesn't really matter since OSX could care less, but for others maintaining the port, they may want code that looks the same. 2003-05-10 21:49:30 +00:00
Gregory Pierce aa13639386 Changed the location of the CGDisplayCapture from the GL code to the Display code. A side effect of this is that calling resetDisplayMode() is required - not optional. Not calling resetDisplayMode() may result in a non-responsive machine. 2003-05-10 19:19:12 +00:00
Gregory Pierce 585131c442 Updated the display init function so that the OSX version plays nicely with the other versions. 2003-05-10 17:30:58 +00:00
Gregory Pierce bcd0b40bce Removed unnecessary struct. No point consuming memory for something that's unnecessary. 2003-05-10 17:21:39 +00:00
Gregory Pierce ad12445e75 Updated to use CG API for mouse capture and deltas. OS handles Deltas itself so using that as opposed to tracking it myself. 2003-05-10 17:20:48 +00:00
Gregory Pierce 8fb714f8e5 Updated to be up to date with current release. Still no support for setting process priority. 2003-05-10 04:58:18 +00:00
Gregory Pierce 4766bd1c85 Finishing up changes to the Display and BaseGL classes. 2003-05-10 04:50:24 +00:00
Gregory Pierce 4d10d662ec Removed as interface to HID devices has changed 2003-05-09 20:24:06 +00:00
Gregory Pierce 5afb350aa0 Updated to use CGL as opposed to AGL 2003-05-09 20:23:28 +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 c04fe10bac new test, based on MouseTest 2003-05-08 21:27:53 +00:00
Brian Matzon b7a151c48b back to 1.19 - silly me 2003-05-08 21:27:12 +00:00
Brian Matzon 900fc0e8fe new test, based on MouseTest 2003-05-08 21:23:02 +00:00
Gregory Pierce 647e1b2b29 Revamped architecture replacing AGL nastiness with cleaner CGL API 2003-05-08 00:53:10 +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
Brian Matzon 20291ac913 fix: destroy keyboard before GL is destroyed 2003-05-04 17:36:57 +00:00
Brian Matzon 702d541fc6 fix: javadoc 2003-05-03 21:20:23 +00:00
Brian Matzon f75a3197e6 damn you tabs! 2003-05-03 19:50:16 +00:00
Brian Matzon 9af031ee77 formatting and usage 2003-05-03 19:48:14 +00:00
Brian Matzon de0ab91f22 add example of switching between fullscreen and windowed mode 2003-05-03 19:41:00 +00:00
Elias Naur 9543fbf3bb Fixed segfault when GLX is missing 2003-05-02 21:18:01 +00:00
Elias Naur 038a1c540c *** empty log message *** 2003-05-02 20:58:53 +00:00
Elias Naur 86798e426f Fixed some linux input focus issues 2003-05-02 13:41:40 +00:00
Brian Matzon dc47138037 fix: added Serializable interface to allow serialization 2003-04-30 15:38:14 +00:00
Brian Matzon 098a932fc9 fix: call base destroy
fix: null references
2003-04-28 22:43:27 +00:00
Caspian Rychlik-Prince c4305dc5a0 Added destroy() method to prevent a crash 2003-04-28 21:50:11 +00:00
Elias Naur 43ff833d99 Fixed a typo 2003-04-28 16:41:39 +00:00
Elias Naur 56e8d511bd Added scale to Matrix4f 2003-04-28 12:10:54 +00:00
Elias Naur 81dc347de0 Reverted the glu loading 2003-04-28 11:20:55 +00:00
Elias Naur 57e9578eb5 *** empty log message *** 2003-04-28 11:12:53 +00:00
Caspian Rychlik-Prince d020ad3216 *** empty log message *** 2003-04-28 11:04:15 +00:00
Brian Matzon 91b33eb649 add: default constructor for OpenAL 2003-04-27 21:26:02 +00:00
Brian Matzon 95367245cb only do 10 updates / sec 2003-04-27 18:39:18 +00:00
Brian Matzon 866e55ad22 New OpenAL programming model:
no context/device fiddling
 easier initialization
2003-04-27 18:37:38 +00:00
Elias Naur b705ea51d0 Removed makeContexCurrent and releaseContext 2003-04-26 06:54:32 +00:00
Elias Naur 2d3d8585b6 Merged cfmdobbie's gl version checking 2003-04-16 20:28:20 +00:00
Brian Matzon 609cdda985 Using EnumDisplaySettingsEx now, to force monitor comparing 2003-04-14 18:17:29 +00:00
Elias Naur 7455bfcef9 Corrected a linux gl lib loading bug 2003-04-13 09:28:01 +00:00
Elias Naur 34e1cd0d8a Removed superflous Vector3f.magnitude() 2003-04-09 15:24:27 +00:00
Elias Naur c82ecd306d Fixed missing header include 2003-04-07 17:49:13 +00:00
Elias Naur 1222c594d0 *** empty log message *** 2003-04-07 17:30:41 +00:00
Elias Naur f0c94451e9 Added dummy gamma controls to linux 2003-04-07 17:04:24 +00:00
Caspian Rychlik-Prince 99588933cf Added some isCreated() methods to input classes and keyboard key name mapping 2003-04-07 15:21:09 +00:00
Elias Naur 5da72080f0 Don't call nGetNULLValue before loading the library 2003-04-03 21:02:23 +00:00
Elias Naur 36e4c9625a Added ARBVertexBufferObject to list of implemented interfaces in GLConstants.java 2003-04-03 20:58:38 +00:00
Elias Naur 3018edde4c Added Sys.NULL constant 2003-04-03 20:20:29 +00:00
Elias Naur d7ff86a7d3 Added support for ARB_vertex_buffer_object 2003-04-03 11:32:32 +00:00
Elias Naur 267b868db7 Minor linux fix 2003-03-31 10:56:41 +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
Brian Matzon ecabc2f361 fix: go for 16 bit mode instead of 32 2003-03-28 23:58:55 +00:00
Brian Matzon f5c253726a fix: rewritten windowed/fullscreen selection 2003-03-28 23:47:20 +00:00
Brian Matzon d3c77abc4b fix: make certain that gl.tick is always called 2003-03-28 23:46:29 +00:00
Brian Matzon 164daef315 fix: removed double Keyboard.read 2003-03-28 23:40:45 +00:00
Caspian Rychlik-Prince 157e7673cc Big changes for the new 0.6 LWJGL release 2003-03-28 23:16:15 +00:00
Brian Matzon 07fdc052e0 fix: make it all compile 2003-03-28 22:12:45 +00:00
Caspian Rychlik-Prince 16d8c3c053 Fixed 2003-03-28 21:04:43 +00:00
Caspian Rychlik-Prince 24160ac606 Fixed 2003-03-28 19:18:23 +00:00
Caspian Rychlik-Prince c2714fe763 Removed Exception from constructor 2003-03-28 19:07:50 +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
Caspian Rychlik-Prince cab8f6f62f New Window class, and major changes to Display 2003-03-27 23:01:14 +00:00
Caspian Rychlik-Prince 24bfb0cf00 New Window class, and major changes to Display 2003-03-27 22:54:41 +00:00
Caspian Rychlik-Prince d4b5248f0a New Window class, and major changes to Display 2003-03-27 22:46:25 +00:00
Caspian Rychlik-Prince 796b84c3d1 New Window class, and major changes to Display 2003-03-27 22:32:48 +00:00
Elias Naur bb2d3d472d Various linux fixes(alot) 2003-03-27 18:28:05 +00:00
Elias Naur 8343bfa44c Various linux fixes(alot) 2003-03-27 18:27:36 +00:00
Elias Naur 0955acdec1 Linux various (5) 2003-03-27 17:22:26 +00:00
Elias Naur 8b4a868ddd Various linux fixes(4) 2003-03-27 15:42:25 +00:00
Elias Naur 52445cf214 Various linux fixes(3) 2003-03-27 15:38:47 +00:00
Elias Naur 3733d4a21e Various linux fixes(2) 2003-03-27 15:28:57 +00:00
Elias Naur d9828de0c4 Various linux fixes 2003-03-27 15:16:35 +00:00
Elias Naur acfd9e4cea Updated linux Mouse 2003-03-24 18:10:04 +00:00
Brian Matzon 6e37721123 add: small window test - wanted to test how fast a display is created 2003-03-24 17:16:42 +00:00
Brian Matzon f40973624c mod: making it possible to see color differences by clicking mouse buttons 2003-03-24 17:07:25 +00:00
Brian Matzon 0d1cc7583b fix: creation of buttons array now occurs in java side 2003-03-24 16:58:10 +00:00
Elias Naur f08389fdd2 Fixed Brian's bugs 2003-03-24 11:56:05 +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
Elias Naur a4454614db Renamed extal.c->extal.cpp 2003-03-23 12:52:11 +00:00
Tristan Campbell 7bbb1273d0 Fixed some bugs that were not allowing bulk adds and some binary incompatibilities.
Fixed error involving incorrectly setting strides when the stride is 0.
2003-03-23 01:13:43 +00:00
Brian Matzon 46802b3486 beautyfication 2003-03-22 23:22:08 +00:00
Brian Matzon dd201b2f14 fix: load OpenAL based on java.library.path 2003-03-22 23:17:11 +00:00
Caspian Rychlik-Prince 0cf93ebe93 Fixed nasty bug in Win9x display mode enumeration 2003-03-22 21:39:52 +00:00
Elias Naur a7ec7cda5b Various linux fixes 2003-03-21 23:28:00 +00:00
Brian Matzon 24db98e43a wip: load oal based on java.library.path 2003-03-21 17:55:33 +00:00
Elias Naur bba7bf9462 Added getPlatform() to linux 2003-03-21 17:37:58 +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
Caspian Rychlik-Prince be9286b6a0 Fixed some JNI errors. One remains. 2003-03-17 18:57:05 +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 f078482bbc Fix Brians bugs 2003-03-17 18:34:43 +00:00
Brian Matzon 7cfa29957e initial commit of OpenAL create/destroy test 2003-03-16 22:52:35 +00:00
Elias Naur 13cceb99b9 Fixed runtime breakage on linux 2003-03-16 21:55:43 +00:00
Elias Naur 0920b5223c Fixed runtime breakage on linux 2003-03-16 21:55:13 +00:00
Brian Matzon 06da0d0017 fix: stop checking Hz 2003-03-16 20:31:40 +00:00
Brian Matzon b10c34254e fix: destroy keyboard upon exit 2003-03-16 20:13:44 +00:00
Brian Matzon 5d4f778e5b fix: escape testing 2003-03-16 20:12:57 +00:00
Brian Matzon 972df2fe53 fix: get 60Hz
fix: keep polygon within window
2003-03-16 20:09:49 +00:00
Caspian Rychlik-Prince ef0f837ea1 *** empty log message *** 2003-03-16 17:37:18 +00:00
Caspian Rychlik-Prince a82dbf5126 *** empty log message *** 2003-03-13 23:11:48 +00:00
Brian Matzon 458fcdc480 fix: compile bug, since glx* didn't return value 2003-03-13 19:54:44 +00:00
Caspian Rychlik-Prince 229da7e9d6 *** empty log message *** 2003-03-13 19:48:02 +00:00
Caspian Rychlik-Prince b39740daf3 *** empty log message *** 2003-03-13 19:31:10 +00:00
Elias Naur 2077bbb1db Moved disabling of repeat rate to Display 2003-03-08 22:14:17 +00:00
Elias Naur 374334e7d3 Disable linux key repeat while Keyboard is created - match win32 behavior 2003-03-08 18:47:34 +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 c6747e0a8e *** empty log message *** 2003-03-07 15:04:28 +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
Elias Naur c0bc4b1899 added glXAllocateMemoryNV/glXFreeMemoryNV 2003-03-06 20:54:05 +00:00
Elias Naur 66b0bfb18f *** empty log message *** 2003-03-06 17:52:58 +00:00
Brian Matzon ccba1c3f79 fix: won't be needing hashmaps from native side 2003-03-04 06:08:53 +00:00
Caspian Rychlik-Prince 46b29a63a4 *** empty log message *** 2003-03-03 22:12:21 +00:00
Brian Matzon 09caa36067 fix: possible NPE evaded 2003-03-03 21:58:17 +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 9cb8739687 fix: only output wgl if debug 2003-03-02 19:24:39 +00:00
Brian Matzon 947964e341 simple mouse test added 2003-03-02 18:57:50 +00:00
Brian Matzon db7b3a9cf5 fix: no longer fatal to not acquire input 2003-03-01 21:39:31 +00:00
Elias Naur 451f237085 Linux mouse buttons now match those on win32 (again) 2003-02-26 18:11:32 +00:00
Elias Naur 4d67446487 Linux mouse buttons now match those on win32 2003-02-26 17:49:09 +00:00