Commit Graph

2126 Commits

Author SHA1 Message Date
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 55d79e7e55 Fixed a potentially uninitialized return value in ALC.c 2006-02-23 19:22:00 +00:00
Elias Naur cc028c9c2e Win32: Made the message processing more friendly to potential foreign windows created on the same thread (and thus sharing message queue with LWJGL). Now handleMessages() in Display.c only processes messages for the current lwjgl window. 2006-02-22 10:47:14 +00:00
Elias Naur 2bc1b89772 Win32: Made the window message proc static 2006-02-22 10:30:35 +00:00
Elias Naur 2ba1f053f9 Made handleMessages() in Display.c static 2006-02-22 09:51:25 +00:00
Brian Matzon 63e997aae4 create single distribution 2006-02-21 22:11:49 +00:00
Elias Naur 2e3c168792 OpenGL: Made generated ContextCapabilities only try to load super class symbols if a sub class is supported. This avoids spurious 'Could not locate symbol' warnings in debug mode (glLoadProgramNV on ATI hardware) 2006-02-06 11:11:09 +00:00
Brian Matzon ac3a70926b support for ALC_ENUMERATION_EXT using LWJGL specific method: AL.getImplementations 2006-02-02 22:34:28 +00:00
Elias Naur bf84c8b361 Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode 2006-01-31 12:48:46 +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
Caspian Rychlik-Prince 5c1b5517c3 *** empty log message *** 2006-01-20 23:25:05 +00:00
Elias Naur a895f58e37 Mac OS X: Fixed legacy library loading 2006-01-17 08:47:52 +00:00
Elias Naur 00292ddf75 Win32: Don't accumulate scroll wheel deltas if Dinput is grabbed 2006-01-17 07:18:02 +00:00
Elias Naur 53ca29e9f7 Win32: More experimental directinput stuff 2006-01-16 23:51:57 +00:00
Elias Naur 51466773f4 Win32: Quick test to see if we can get more accurate polling data from the mouse when not grabbed 2006-01-16 23:09:58 +00:00
Elias Naur 87c996fb45 Mac OS X: Cleanup of macosx_al.c 2006-01-16 21:17:12 +00:00
Caspian Rychlik-Prince 08ca3d8586 Cleanup of unused imports 2006-01-16 21:06:00 +00:00
Caspian Rychlik-Prince 64f58414b4 *** empty log message *** 2006-01-16 21:04:49 +00:00
Elias Naur e1c51385c6 Mac OS X: Added loading of a legacy native lwjgl library to support applications that need to run on Mac OS X 10.2, 10.3 and 10.4, including intel mac versions. NOTE: Intel support from the universal build is not tested, since I don\'t have acces to an intel mac. 2006-01-16 20:37:28 +00:00
Elias Naur 8f7540ce43 Mac OS X: Ported OpenGL library code to use frameworks instead of accessing libGL.dylib directly 2006-01-16 19:52:40 +00:00
Elias Naur 19d2d219ec Mac OS X: Load the framework (builtin) version of OpenAL last, after having tried all possible locations of a private openal.dylib 2006-01-16 19:35:09 +00:00
Elias Naur a47ec6d86f Mac OS X: Removed redundant -syslibroot from linker flags 2006-01-16 18:37:51 +00:00
Elias Naur e245faff46 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:58:23 +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 c7f671d062 Mac OS X: Made Makefile compile a fat binary under 10.4 as default, and added Makefile.legacy for 10.3 compiles. Made OpenAL try to load the builtin OpenAL framework (available on 10.4) if loading openal.dylib fails 2006-01-16 15:15:38 +00:00
Elias Naur e636ab9671 Linux: Made Xxf86vm dynamically linked when compiling to amd64 2006-01-13 14:37:16 +00:00
Elias Naur 63589487d9 Linux: Added workaround to avoid crash on exit with nvidia drivers 2006-01-12 12:25:12 +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 033dc40a89 Converted System.getenv() to Boolean.getBoolean to please the blackdown VM 2006-01-04 07:36:08 +00:00
Elias Naur c9f35b917d Made Display.releaseContext static (duh) 2006-01-02 14:15:24 +00:00
Elias Naur 95bc8cc4e5 Fixed exception messages 2006-01-02 14:05:30 +00:00
Elias Naur 9ccb31416e Added Display.releaseContext() 2006-01-02 13:49:36 +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 2a9b8de2fb Make Display, Pbuffer and AWTGLCanvas fail on null PixelFormats 2005-12-29 22:31:46 +00:00
Elias Naur 6ea1739399 Make Display, Pbuffer and AWTGLCanvas fail on null PixelFormats 2005-12-29 22:30:14 +00:00
Elias Naur a8aabe008e Added initGL to AWTGLCanvas 2005-12-28 22:23:35 +00:00
Elias Naur d633986260 PBO/VBO checks now query OpenGL directly instead of keeping track of the currently bound buffers 2005-12-27 14:46:42 +00:00
Elias Naur 1d521cf604 Win32: Removed stale declaration from display.h 2005-12-27 13:48:27 +00:00
Elias Naur 07da99cd7d Win32: Moved getGammaRampLength to java side 2005-12-27 13:47:25 +00:00
Elias Naur ad1987d748 Win32: Moved handleMessages to java side (update()) 2005-12-27 13:40:21 +00:00
Ioannis Tsakpinis 9bd5c0b9b4 New EXT_framebuffer extensions 2005-12-27 12:35:12 +00:00
Elias Naur 6aed933999 Win32: display.c: Make initDisplay use the same API as getAvailableDisplayModes 2005-12-27 11:21:46 +00:00
Elias Naur 7861e281c3 Win32: Adder createDisplayMode helper function to display.c 2005-12-27 11:12:53 +00:00
Elias Naur cbf850fc5e Win32: Removed unused cruft from display.c 2005-12-27 11:03:33 +00:00
Elias Naur 918e87b154 Win32: Zero out the devmode struct in display.c 2005-12-27 08:54:56 +00:00
Elias Naur 55aacdac01 Win32: Commented multi-monitor stuff out from display.c, since we don't really support multiple monitors anyway. Now we only operate on the default (DISPLAY_DEVICE_PRIMARY_DEVICE) device, which should scale to multi monitor setups. Needs thorough testing, of course. 2005-12-26 21:52:12 +00:00
Elias Naur 42e1a8a8c0 Win32: Added debug to dispaly mode switching and removed the DM_DISPLAYFLAGS flag 2005-12-26 15:06:45 +00:00
Ioannis Tsakpinis 9dfd46ba6f New EXT_framebuffer extensions 2005-12-24 19:37:25 +00:00
Ioannis Tsakpinis 1c2910f60b New EXT_framebuffer extensions 2005-12-24 19:30:59 +00:00
Ioannis Tsakpinis ab7d4a797c Converted comments to javadoc, code cleanup 2005-12-24 19:28:13 +00:00
Brian Matzon 1e582060ba include generated when doing javadoc 2005-12-20 22:35:49 +00:00
Elias Naur a74d21929d Mac OS X:Added support for -exported_symbols_list 2005-12-20 10:13:41 +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
Elias Naur 13fdcded26 Added Sys.getVersion() in place of the compile time constant Sys.VERSION 2005-12-19 10:57:22 +00:00
Brian Matzon 5cdf986ed6 disallow creation of ILUT prior to ILU (unable to load native unless ILU has been loaded first) 2005-12-18 10:54:18 +00:00
Brian Matzon 5eab7dd2a6 incremented to 0.99 2005-12-17 21:22:11 +00:00
Brian Matzon 3dbf76621b experimental amd64 buildfile 2005-12-17 21:14:42 +00:00
Ioannis Tsakpinis 587d2f8f79 Removed STENCIL_INDEX_EXT (spec rev. #114, June 16, 2005)
Removed FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT (spec rev. #117, September 26, 2005)
2005-12-13 20:12:39 +00:00
Ioannis Tsakpinis 370b505581 Added missing sampler enums (spec rev. 7/8/2005) 2005-12-13 20:10:56 +00:00
Brian Matzon 8d68a3824e fixed javadoc 2005-12-09 23:37:04 +00:00
Brian Matzon e27338e9d0 fixed version mismatch (!!!!) 2005-11-28 22:12:06 +00:00
Elias Naur 747f0850a0 Added support for native formatted exception messages 2005-11-24 11:31:26 +00:00
Elias Naur 42406fcf8f Win32: Removed unused variable from context.c 2005-11-24 10:28:32 +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 1d3a2ccf26 build.xml: target 'jars' shouldn't depend on target 'clean' 2005-11-21 11:08:04 +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 1d52341e60 OpenAL: Made alcGetCurrentContext static in org_lwjgl_openal_ALC.c 2005-11-20 13:47:45 +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 73314be1bb Don't ignore exceptions 2005-11-20 10:08:02 +00:00
Elias Naur 95e35d95ac OpenAL: Fix the declaration of alGetListenerf and alGetListeneri 2005-11-16 09:19:18 +00:00
Kevin Glass 02a9ec5c9c Removed the use of "jinput.plugins" system property since it doesn't appear to be needed any more and causes double detection of controllers. 2005-11-15 22:31:49 +00:00
Elias Naur cd9dde873d Added missing generated stuff 2005-11-07 08:49:50 +00:00
Ioannis Tsakpinis 202e913022 Added missing functions in ARB_vertex_shader 2005-11-05 18:57:25 +00:00
Brian Matzon a33a82e80b silly debug leftovers nuked 2005-11-04 19:28:34 +00:00
Brian Matzon 20a9d2216c reworked devil dynamic stub to use generated header using a new ILNative class 2005-11-04 19:22:52 +00:00