Commit Graph

2551 Commits

Author SHA1 Message Date
Elias Naur 9f147c754a Linux: Don't statically link Xrender, Xrandr, Xcursor and Xfixes to
avoid bugs in older versions of the libraries being exposed in newer
linux distributions based on XCB (like Ubuntu Feisty).
2007-03-06 14:48:35 +00:00
Elias Naur 7812414dbd Updated jinput.jar and libjinput.jnilib to the latest version 2007-02-25 21:52:11 +00:00
Elias Naur d6207572c6 Added a Pbuffer constructor that omits the RenderTexture parameter, and added a note that FBOs should be used instead, if available. Render-to-texture pbuffers can only be available on Windows platforms and is thus not portable. 2007-02-24 18:41:41 +00:00
Elias Naur 4bf4a385f3 Linux: When creating a window don't loop waiting for the MapNotify event. Instead, make sure we don't immediately go from fullscreen to minimized by checking if the window has been focused at least once before minimizing (and resetting display mode). 2007-02-23 10:14:18 +00:00
Elias Naur a5c8a3d6af Linux: Don't call XSetInputFocus when creating a window. XSetInputFocus can fail if the window is not mapped when calling it, and it seems that it's rude to call XSetInputFocus according to the ICCCM when the application doesn't already have the focus in one of its subwindows. 2007-02-23 08:31:59 +00:00
Elias Naur 12eb552aba Linux: Don't use XClearWindow to clear the window, but rely on the OpenGL clearing instead. Also, remove redundant attributes in XCreateWindow 2007-02-23 08:21:02 +00:00
Ioannis Tsakpinis 10695d0b2d Added NV_geometry_shader4 2007-02-21 13:44:33 +00:00
Elias Naur dd41c22da7 Windows: Don't exclude PFD_GENERIC_ACCELERATED formats when selecting pixel formats. Hopefully this will enable LWJGL to use the directx emulated opengl implementation on vista 2007-02-17 09:49:44 +00:00
Elias Naur 56178d97fd Make the rest of LWJGL thread safe. No attempt have been done to make the locking minimal. Instead, one global lock is shared by Display, Mouse, Keyboard and Cursor. The lock surrounds all public methods. 2007-02-12 12:18:26 +00:00
Brian Matzon c880c689ff fixed test to use -1 in freq 2007-02-04 21:46:29 +00:00
Brian Matzon 79a8cf82bd 1.0 version string 2007-02-03 12:22:25 +00:00
Elias Naur 763d9cce7c Linux: Make sure the first Mouse.poll() return correct absolute X and Y values 2007-01-31 14:07:20 +00:00
Elias Naur 46ce5679c8 Windows AWTInput: Make sure the cursor is contained within the window when the Mouse is grabbed. 2007-01-30 13:08:51 +00:00
Brian Matzon e8d032973f updated streams 2007-01-23 19:55:46 +00:00
Elias Naur 1602a74f42 Tweaked comment for Display.getAvailableDisplayModes to make it clear that invalid modes can be returned and that create() won't always detect such modes 2007-01-22 10:14:13 +00:00
Elias Naur 5d13607699 Changed version to RC2 2007-01-22 09:24:06 +00:00
Elias Naur 083137884b Remove the rest of the implementation reflection 2007-01-17 12:58:38 +00:00
Elias Naur 7742185e34 Sys.java: Don't use reflection to create platform specific implementations 2007-01-17 12:49:20 +00:00
Elias Naur 4a1b565c74 Bumped native version because of internal linux API change 2007-01-17 08:22:31 +00:00
Elias Naur 4b13bb10d3 Linux: Fixed wrong return type in LinuxEvent.nGetKeyAddress 2007-01-17 08:16:16 +00:00
Elias Naur d3f6588580 Auto generated files update 2007-01-17 08:01:49 +00:00
Elias Naur 9d998d61ad Auto generated files update 2007-01-17 08:01:37 +00:00
Elias Naur 0df2660f1d Fixed type in NV_framebuffer_multisample_coverage.java 2007-01-17 08:00:54 +00:00
Elias Naur 7adffdb0cc Display: Fixed a NPE when create() fails on context creation 2007-01-13 19:24:05 +00:00
Elias Naur 31079a10c1 AWTInput: Don't create the Robot before it is needed 2007-01-10 13:55:42 +00:00
Brian Matzon 00db5fcb85 added Display.create/destroy. Fixes an error on mac, since OpenGL has to be initialized before creating ILUT 2007-01-07 20:41:45 +00:00
Elias Naur 09a9f4953f Linux: Devil and FMOD: Add alternative paths to JNI header files 2007-01-07 08:41:33 +00:00
Brian Matzon 48fe0910a1 osx cursor animation emulation enabled 2007-01-04 23:28:33 +00:00
Elias Naur b7b203d29a Windows: Clear the window with OpenGL to replace UpdateWindow(HWND) and run message loop once in Display.create(). 2007-01-04 14:12:36 +00:00
Elias Naur 97db4ca4b2 Windows: Don't use UpdateWindow after all. Instead, don't use a background brush at all to avoid windows clearing windows with non OpenGL drawing commands. Hopefully this will improve compatibility (The NeHe tutorials also don't specify a background brush). 2007-01-04 14:00:45 +00:00
Elias Naur 0234336feb Windows: Re-add UpdateWindow to make sure fullscreen windows are cleared faster 2007-01-04 13:44:23 +00:00
Elias Naur 1bc9ac0aad AWTGLCanvas: Release the lock before calling exceptionOccurred 2007-01-03 09:16:13 +00:00
Elias Naur 1005813acc AWTGLCanvas: Added exceptionOccurred to allow users to be notified of unhandled LWJGLExceptions in paint() 2007-01-03 09:13:38 +00:00
Brian Matzon de0a724da7 use precalculated widths and heights, else we crash in cursor constructor because of buffer underflow 2007-01-02 19:02:25 +00:00
Elias Naur ede23fc9a3 HWCursorTest: Cap cursor size 2007-01-02 11:12:37 +00:00
Elias Naur 861421e16c Fix HWCursorTest 2007-01-02 11:09:05 +00:00
Elias Naur 662e9c7e7a Mac OS X: Add support for fake cursor animation 2007-01-02 10:55:44 +00:00
Elias Naur 623648e99d Refreshed jinput.jar 2006-12-26 09:19:40 +00:00
Elias Naur 6370d84ce0 Updated jinput.jar 2006-12-23 07:52:51 +00:00
Elias Naur 12c6afef97 Windows: Don't use WS_EX_TOPMOST for fullscreen windows. 2006-12-22 11:23:45 +00:00
Elias Naur d4ea142f89 Windows: Make window visible after pixel format selection and move code from native WindowsDisplay.nCreate to java side. 2006-12-22 10:45:39 +00:00
Elias Naur d2e9a9fb4a Windows: Simplify context creation and don't cache the extensions information struct in native code. Just reload it at each use (only at setSwapInterval currently). 2006-12-22 10:36:04 +00:00
Elias Naur 0eb8a4ee4f Commit changes in automatically generated files 2006-12-21 08:11:29 +00:00
Elias Naur 7f05f4ed8a Update javadoc for glMapBuffer 2006-12-21 08:10:23 +00:00
Elias Naur 175ac13445 Fix VBO tests and bump Sys native JNI library version 2006-12-20 19:24:25 +00:00
Elias Naur ceab6f366e Commit changes in automatically generated files 2006-12-20 19:23:35 +00:00
Elias Naur 116a603572 Add GLChecks support methods for GL15 and ARB_buffer_object 2006-12-20 19:22:33 +00:00
Elias Naur 1f70418d2d Make glGetBufferPointer and glMapBuffer in GL15 and ARB_buffer_object compute result_size automatically. Change NV_vertes_array_range to use the new AutoResultSize syntax. 2006-12-20 19:21:35 +00:00
Elias Naur eaed716958 Generator: Support arbitrary @AutoResultSize expressions. Make Buffer result sizes long instead of int 2006-12-20 19:19:56 +00:00
Elias Naur 17d7df3f19 Check cached buffer results in OpenGL functions for matching capacity 2006-12-20 17:55:10 +00:00
Brian Matzon 69e52d3361 1.0-rc1 version string 2006-12-18 18:27:15 +00:00
Brian Matzon 891902e4d6 version screw-up 2006-12-12 21:44:46 +00:00
Brian Matzon 1011b614e5 added getVersion like lwjgl
bumped native version
2006-12-12 21:30:58 +00:00
Brian Matzon fcb1f55eb9 fixed comment for getVersion 2006-12-12 21:30:21 +00:00
Brian Matzon dd5ac45a66 added getVersion like lwjgl 2006-12-12 21:29:08 +00:00
Elias Naur a211f088ac Linux: Make sure a newly created window get the focus, if possible, to avoid a fullscreen window immediately getting minimized 2006-12-11 20:38:21 +00:00
Elias Naur c8f6fe0349 Linux: Add more include paths to the build script to handle distros with a different JRE layout 2006-12-11 11:26:26 +00:00
Elias Naur 66466b6d39 Bumped Sys.JNI_VERSION because of earlier OpenGL function changes 2006-12-06 14:01:29 +00:00
Brian Matzon 360da7c374 fix loading issues on linux/mac 2006-12-04 21:58:46 +00:00
Elias Naur 4aed85c5bb Linux: Don't double free the Display connection in the switchDisplayMode error path 2006-12-02 22:21:32 +00:00
Elias Naur 0b8e49cb54 ARBTextureCompression, GL13: Only allow ByteBuffer for glCompressedTex*Image*D since the spec defines that the image data is interpreted as (unsigned) bytes anyway. Also let the imageSize parameter be automatically determined 2006-11-27 23:04:37 +00:00
Elias Naur 93eabcf999 Generator: Make sure that @GLvoid types result in proper address calculations at the native side, even though the parameter java type is not java.nio.Buffer 2006-11-27 23:01:01 +00:00
Elias Naur 9709e6da2b Remove GL.java and GLImpl.java as they're not updated automatically anyway 2006-11-27 22:45:28 +00:00
Elias Naur f7b0c5c1b2 Linux: Tweak LinuxAWTInput 2006-11-24 15:30:36 +00:00
Elias Naur c6ba2c66b1 Windows: Make sure that the cursor position doesn't jump when switching grab mode 2006-11-24 15:21:02 +00:00
Elias Naur 92b3a7d282 Windows: Fix potential NPE 2006-11-24 15:10:15 +00:00
Elias Naur 4c817d4145 Compile fix 2006-11-24 15:03:05 +00:00
Elias Naur 63532ca647 Make sure that the cursor position doesn't jump when switching grab mode 2006-11-24 14:53:01 +00:00
Elias Naur 57a8067a88 Fix locking in MouseEventQueue 2006-11-24 12:05:46 +00:00
Elias Naur 2577827e4a Synchronize Keyboard and Mouse to avoid problems with AWTInputAdapter based usage 2006-11-24 10:18:36 +00:00
Elias Naur 6abfeb4df2 Made LWJGLUtil.getLibraryPaths support multiple library names. Now AL.create on linux tries both libopenal.so and libopenal.so.0, which is the name of the system library 2006-11-20 20:07:29 +00:00
Elias Naur f62f11b437 Made LWJGLUtil.getPathFromClassLoader private 2006-11-20 19:28:50 +00:00
Elias Naur 287861ec89 Windows: Dont use DirectInput for keyboard input. This fixes shifted typing. 2006-11-20 09:26:44 +00:00
Elias Naur 993885b9de Added AWTInputAdapter testing to applet/OpenGL.java 2006-11-20 08:39:22 +00:00
Elias Naur 6bac5f8bfa Windows: Destroy the keyboard when we create a new one 2006-11-20 08:14:50 +00:00
Elias Naur 34e5ce2080 Twekaed tests 2006-11-20 08:04:56 +00:00
Elias Naur d75d00666a Windows: Make sure AWTInputAdapter is not reporting events twice after a grab change 2006-11-19 23:02:25 +00:00
Elias Naur 5d6ae4138a Autogen changes from previous commit 2006-11-19 22:06:46 +00:00
Elias Naur 0bed1b2f98 Renamed NV_transform_feeback.java to NV_transform_feedback.java 2006-11-19 22:01:56 +00:00
Elias Naur f56ebc21a9 AWTInputAdapter: Destroy Keyboard/Mouse before destroying the adapter 2006-11-19 21:49:10 +00:00
Elias Naur d2de70f2d9 Make sure that Mouse.destroy ungrabs the cursor 2006-11-19 21:41:34 +00:00
Elias Naur 3fc91a641c AWTInputAdapter: unregister event listeners on destroy() 2006-11-19 21:15:51 +00:00
Elias Naur 0e10718b16 AWTInputAdapter.destroy() now destroys the Keyboard and Mouse to mimic the behaviour of Display.destroy() more closely. 2006-11-19 16:24:18 +00:00
Elias Naur 2502496b2d Made all GL functions only query ContextCapabilities.getCapabilities() once. Now all GLCheck checks will take the ContextCapabilities instance as an argument instead of querying for it. Inspired by MatthiasM, who just don't seem to be content with LWJGL performance, ever ;) 2006-11-19 13:33:45 +00:00
Elias Naur 905aec0877 Shave off one ThreadLocal access in StateTracker.push/popAttrib() 2006-11-19 12:48:57 +00:00
Elias Naur 7ca70d8c5e Display: Don't add the shutdown hook twice when a previous create() call has failed 2006-11-19 11:43:00 +00:00
Brian Matzon a7e564a06a signing jars in distribution
added source package
added applet package
macosx compile_native_optional now using ant build scripts instead of makefiles
cleanup
2006-11-19 09:04:28 +00:00
Brian Matzon d1cd4b851c beta4 2006-11-18 22:22:41 +00:00
Brian Matzon fa242848af JNI_VERSION restructure 2006-11-18 22:03:02 +00:00
Brian Matzon 1e806b9188 JNI_VERSION restructure 2006-11-18 21:56:31 +00:00
Brian Matzon 88d377ca74 using __APPLE__ && __MACH__ instead of _MACOSX 2006-11-18 21:28:17 +00:00
Brian Matzon e3d6b25d4e universal build of fmod 2006-11-18 21:20:41 +00:00
Brian Matzon 159d25739e devil universal build script 2006-11-18 18:40:39 +00:00
Brian Matzon ede7b63e46 fixed relative path issues when dlopen is being called 2006-11-18 18:39:26 +00:00
Kevin Glass 007fe5999e Updated Controllers event queue to make use of the new JInput
event queue, including adding getEventNanoseconds() to the 
Controllers interface. TestControllers against Logitech pad on
Win32 confirms that no behaviour changes are evident.
2006-11-17 08:08:21 +00:00
Kevin Glass 15fd0f6d81 Updated to return the controller name unmodified from JInput. 2006-11-17 07:17:12 +00:00
Elias Naur 70e3294b7b Restore old Mouse.create/Keyboard.create behavior which is to ignore create() when already created. 2006-11-16 12:29:52 +00:00
Ioannis Tsakpinis 1bb95e94f4 Removed duplicate functions (based on NVIDIA's glext.h) 2006-11-15 18:46:22 +00:00
Elias Naur e6d6ddb921 buid.xml: Remove env.AL requirement from optionals build 2006-11-14 09:32:04 +00:00
Elias Naur a853b2ba69 Mac OS X: Fix to intel mac build 2006-11-14 09:20:24 +00:00