Commit Graph

408 Commits

Author SHA1 Message Date
Elias Naur 6be8bc806e Linux: Fixed fetch of a boolean field with GetIntField JNI 2006-07-10 15:29:29 +00:00
Elias Naur af9e73ed11 Linux: Made most fields in LinuxDisplay non-static 2006-07-08 22:17:09 +00:00
Elias Naur cb8f098e17 Linux: Remove Makefiles 2006-07-07 14:06:46 +00:00
Elias Naur 4e68c787b3 Added Keyboard.getEventNanoseconds() and Mouse.getEventNanoseconds() 2006-07-04 17:07:13 +00:00
Elias Naur a417b8f15c Linux: Moved Display state booleans to java side 2006-07-03 18:33:25 +00:00
Elias Naur cbe41294a5 Linux: Moved most input related stuff from native to java 2006-07-03 18:07:44 +00:00
Elias Naur 322351b216 Linux: native code cleanup 2006-06-30 19:28:00 +00:00
Elias Naur 48cf79e55f Linux: Fixed Display.setIcon memory leak. 2006-06-30 18:56:37 +00:00
Elias Naur 9e1280d281 Linux: Made the native destructor my_fini static 2006-06-30 16:47:46 +00:00
Elias Naur 9c4ce2845b Windows implementation of floating point pixel formats 2006-06-12 13:28:56 +00:00
Elias Naur c1e65970a2 Added floating point format to PixelFormat. Linux implementation 2006-06-12 13:01:05 +00:00
Elias Naur 05111c300f Linux: Added Xfixes to the list of libraries liblwjgl.so statically links to 2006-05-29 19:03:02 +00:00
Elias Naur 24bef50437 Linux: Apparently, some the Mesa GLX 1.3 glxChooseFBConfig don't like the GLX_STEREO attribute, even when set to False. So we'll only specify GLX_STEREO in case a stereo context is actually requested 2006-05-15 19:37:29 +00:00
Elias Naur ec67322e64 Linux: Fixed accum color bits when accum_bpp = 0 2006-05-13 10:03:19 +00:00
Elias Naur d492cbde20 Linux: Removed the glXIsDirect test to determine whether a context is accelerated or not. This is specifically not the case for Xgl and friends that accelerates indireect rendering. Unfortunately, I'm not sure what to replace the test with, so there is currently no way to know from LWJGL whether we're software rendered or not (other than measuring FPS). In fact, I'm not even sure that we can come up with a good test, because some (DRI) drivers use software MESA rendering for some parts of GL, while other parts are hardware accelerated 2006-02-23 19:29:49 +00:00
Elias Naur 3b8b751935 Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode 2006-01-31 12:31:41 +00:00
Elias Naur c26ebafa62 OpenAL: Split platform dependent code from extal.c into platform subdirs. Made nCreate take a path instead of an array of paths. 2006-01-16 15:54:50 +00:00
Elias Naur e636ab9671 Linux: Made Xxf86vm dynamically linked when compiling to amd64 2006-01-13 14:37:16 +00:00
Elias Naur 7e53e81103 Linux: don't throw exception if Xrandr or XF86VM extension query fails 2006-01-04 12:52:25 +00:00
Elias Naur 196471a968 Linux: Re-added RTLD_GLOBAL to dlopen() with a comment since DRI drivers need it. 2006-01-02 13:16:16 +00:00
Elias Naur 5faf661f04 Added setSwapInterval to Display and AWTGLCanvas 2006-01-01 19:50:06 +00:00
Elias Naur 69356ac9ea Linux: Added lwjgl.map to specify symbol visibility. Only Java_ symbols will be exported from the liblwjgl.so library now 2005-12-20 09:23:14 +00:00
Elias Naur 16f78b39c6 Linux: Removed the unnecessary RTLD_GLOBAL flag from the dynamic loading of libGL.so 2005-12-20 08:47:40 +00:00
Brian Matzon 3dbf76621b experimental amd64 buildfile 2005-12-17 21:14:42 +00:00
Elias Naur 17c01716ab Linux: use the correct KEYBOARD_SIZE 2005-11-23 17:08:17 +00:00
Elias Naur bbab370e8c Linux: Removed unused vsync_enabled from Display.c 2005-11-23 15:56:57 +00:00
Elias Naur f21a31e595 Linux: Removed redundant initEventQueue from Mouse.c 2005-11-23 15:36:21 +00:00
Elias Naur 3f128ca204 Linux: Removed redundant global variables from Display.c 2005-11-23 15:30:53 +00:00
Elias Naur 1ff7a0af4f Linux: Made setIcon in Display.c static since it is not called elsewhere 2005-11-23 15:18:34 +00:00
Elias Naur 4c68fc2ecf Linux: Added -lm and -std=c99 to fix the warning abount round(). Removed some unnecessary headers 2005-11-23 15:10:05 +00:00
Elias Naur 3c83a92a64 Linux: Ignore events from old windows 2005-11-22 14:30:00 +00:00
Elias Naur d6ae5e2d45 Converted some static local variables to stack localvariables 2005-11-22 14:03:52 +00:00
Elias Naur 2bc0988c98 Linux: More native code refactoring 2005-11-22 13:53:13 +00:00
Elias Naur 7469d59dbf Linux: Removed current_* mode cache from display.c 2005-11-22 11:23:37 +00:00
Elias Naur f548d581ce Linux: Fixed a mouse cursor position issue in grabbed mode 2005-11-22 11:06:21 +00:00
Elias Naur 9a64711cea Linux: removed getWindowWidth/Height from native side 2005-11-22 10:32:17 +00:00
Elias Naur 026f64a8e5 Linux: Removed getScreenModeWidth/Height from display.c 2005-11-22 09:32:15 +00:00
Elias Naur 936ae90290 Linux: fixed an issue with Xrandr timestamps 2005-11-21 22:37:14 +00:00
Elias Naur e2ee957f0b Linux: let exceptions from display.c propagate to LinuxDisplay.java 2005-11-21 22:21:29 +00:00
Elias Naur b6dd18fc7d Linux: Moved saved display mode from C to LinuxDisplay.java 2005-11-21 21:59:11 +00:00
Elias Naur b3fd19cf01 Linux: Moved some JNI functions 2005-11-21 18:25:30 +00:00
Elias Naur 61bfceaaed Linux: Moved a display connection to java 2005-11-21 16:50:11 +00:00
Elias Naur debaaf6538 Linux: Move gamma ramps to java code 2005-11-21 16:32:34 +00:00
Elias Naur c9669d20c9 Linux: Folded three ramp arrays into one, to avoid multiple allocations 2005-11-21 13:43:49 +00:00
Elias Naur 6e5ed9d1ff Linux: Moved a display connection creation to java 2005-11-21 13:32:52 +00:00
Elias Naur 5af5828dc6 Linux: Moved display mode extension and window state handling up into java code 2005-11-21 13:22:52 +00:00
Elias Naur fe915b8d1c Linux: Removed superfluous check from display.c 2005-11-21 10:55:49 +00:00
Elias Naur 3099244b4f Linux: Added zero size check to display.c 2005-11-21 10:45:59 +00:00
Elias Naur 314d353aea Linux: renamed _glX* function pointers to lwjgl_glX* to avoid symbol clash problems discovered in mustang 2005-11-20 13:20:40 +00:00
Elias Naur b669751c73 Linux: renamed _glX* function pointers to lwjgl_glX* to avoid symbol clash problems discovered in mustang 2005-11-20 13:19:39 +00:00
Elias Naur 56a56503d6 Linux: Don't assume JAWT Lock()/Unlock() are re-entrant, fixing a hang with GCJ 4 2005-10-23 19:41:09 +00:00
Elias Naur 9af9ed4320 OpenAL: Fixed native headers, now that altypes.h and alctypes are gone 2005-10-10 12:50:10 +00:00
Elias Naur 94f39655a5 Linux: Fix Mouse.setCursorPosition() 2005-10-10 09:11:24 +00:00
Elias Naur df2bc7d7e0 Moved generated files to seperate directories 2005-09-29 17:13:38 +00:00
Elias Naur 5d139f4585 Linux: Added support for LWJGL_DISABLE_XRANDR environment variable to override Xrandr support on broken window managers 2005-09-13 06:56:14 +00:00
Elias Naur 545ac5ac95 Linux: Drop out of Xrandr loop after a set amount of iterations 2005-09-12 13:05:54 +00:00
Elias Naur c1350ff363 Linux: Made the XRRSetScreenConfigAndRate retry loop more robust in order to avoid endless loops 2005-08-21 20:27:20 +00:00
Kevin Glass 2147b530b3 Added Linux native code for window icon setting. 2005-07-06 19:46:35 +00:00
Kevin Glass 0208d5b6d5 Added empty implementation of the window icon setting code in preperation for adding the Linux version. 2005-07-05 21:46:27 +00:00
Elias Naur ce673390d3 Linux: Added library unload destructor that resets keyboard repeat mode 2005-06-28 15:19:32 +00:00
Elias Naur c80ace3704 Linux: Added missing NULL check 2005-06-04 21:14:32 +00:00
Elias Naur aef35ae0ed Linux AWT: in case we're not on a SUN jdk, try to determine values instead of bombing out. This should help us compile and run on gcj 2005-05-27 11:50:13 +00:00
Elias Naur 0b9d221f9c Fix cursor jumping after Mouse.setGrabbed() 2005-04-28 09:57:45 +00:00
Elias Naur e6f8857439 Linux: If a keysym has no LWJGL mapping, try the unshifted keysym instead 2005-04-19 07:18:17 +00:00
Elias Naur 274abbf856 Linux: Added support for LWJGL_DISABLE_NETWM environment which will override the NetWM detection 2005-04-14 10:10:46 +00:00
Elias Naur d26dca6029 Linux: Added XK_ISO_Left_Tab as an alias for KEY_TAB 2005-04-13 12:55:21 +00:00
Elias Naur 38fa843cd2 Linux: ignore vendor-specific keysyms 2005-04-13 12:21:53 +00:00
Elias Naur 61ddd625df Added Mouse.setCursorPosition(x, y) 2005-04-12 11:45:06 +00:00
Elias Naur 96463f2ef6 Linux: Improved keyboard mapping support 2005-04-11 10:00:09 +00:00
Elias Naur e8209e9a87 Linux: Use KeySyms instead of raw key codes to take the keyboard mapping in account 2005-04-09 23:26:27 +00:00
Elias Naur 7c8f43e915 Linux: Load libGL.so with the RTLD_GLOBAL flag. It seems that some drivers need it 2005-04-04 12:24:11 +00:00
Elias Naur b59e82fd83 Linux: Statically link libXxf86vm 2005-04-01 09:51:11 +00:00
Brian Matzon 7963d74da8 added X11R6 to path 2005-03-30 16:55:09 +00:00
Elias Naur c9fc024fa4 Linux: Moved display connection reference count to java. Linux: Load OpenGL library before opening display to work around a crash in NVIDIA drivers. 2005-03-29 11:31:22 +00:00
Elias Naur 508af9d0b9 Linux: Added missing NULL check 2005-03-28 10:29:16 +00:00
Elias Naur bdcb68a582 Linux: Handle different GLX capabilities on different screens 2005-02-24 10:44:34 +00:00
Elias Naur f4bfadcc5a Removed unsued JNIEnv parameter from extgl_QueryExtension 2005-02-23 15:19:21 +00:00
Elias Naur c092c5f367 Linux: Fixed glx 2005-02-23 14:16:57 +00:00
Elias Naur ad92547914 Moved platform specific stuff from extgl.c into platform directories 2005-02-23 13:22:44 +00:00
Elias Naur c96dc98b63 Clean out commented code 2005-02-23 11:42:04 +00:00
Elias Naur 9a764b3d33 Linux: moved handle allocations to native 2005-02-22 13:59:33 +00:00
Elias Naur 5d2e5de4eb Linux makefile fix 2005-02-22 13:14:05 +00:00
Elias Naur 8bb10a1372 Linux: moved Cursor handle allocation to native side 2005-02-21 15:56:53 +00:00
Elias Naur c8fc535c7c Linux: fixed GLX 1.3 2005-02-21 15:35:09 +00:00
Elias Naur fb5d89599b Linux support for AWTGLCanvas. Big refactor of context specific code into Context.java that is now shared between Display, Pbuffer and AWTGLCanvas. (Win32 and Mac OS X is now broken while I implement the same changes on those platforms) 2005-02-20 11:24:22 +00:00
Elias Naur 8feec32e60 Linux: native error handling fixes 2005-02-18 09:26:32 +00:00
Elias Naur 2d5c4cf934 Moved platform specific opengl extension flags into the platform specific files 2005-02-17 12:39:33 +00:00
Elias Naur 17ee2523c0 The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. 2005-02-15 11:05:36 +00:00
Elias Naur e446883a7f Renamed org.lwjgl.opengl.Window.allowSoftwareOpenGL to org.lwjgl.opengl.Display.allowSoftwareOpenGL 2005-01-27 21:26:46 +00:00
Elias Naur a7fa07c2cc Moved pbuffer supported check into native code to fix the case of no current context when creating the pbuffer 2005-01-19 13:05:07 +00:00
Elias Naur 66181d1486 Delegate Sys platform dependent methods into SysImplementation instances 2005-01-18 20:23:05 +00:00
Elias Naur 89074eafa2 Removed Sys.setProcessPriority 2005-01-18 19:05:34 +00:00
Elias Naur f8ae518d0f Linux:Moved NUM_BUTTONS up into java 2005-01-18 17:25:34 +00:00
Elias Naur f4180a214d Cleaned up Mouse and Keyboard now that buffering and translation are always enabled 2005-01-18 16:42:31 +00:00
Elias Naur d64589aaa7 Linux: removed org_lwjgl_input_Controller.c, since the methods were empty anyway 2005-01-18 14:09:27 +00:00
Elias Naur fbcd19698b Moved Mouse.getNativeCursorCaps() to Cursor.getCapabilities()
Renamed Pbuffer.getPbufferCaps() to Pbuffer.getCapabilities()
2005-01-18 12:34:36 +00:00
Elias Naur 8668ab3e89 Linux: Hardened getAvailableDisplayModes so that it won't be confused by a changing number of display modes while it is executing 2005-01-16 10:43:30 +00:00
Elias Naur 37f6c9fe97 Linux: Don't free Pbuffer when it is not created 2005-01-14 13:30:41 +00:00
Elias Naur 7d8cc6abbb Linux: Release context before destroying it 2005-01-12 12:20:53 +00:00
Elias Naur ccd37148e1 Linux: Implemented AWT synchronization through JAWT. Needed because Xlib is not guaranteed thread safe 2005-01-11 15:22:12 +00:00