Commit Graph

2496 Commits

Author SHA1 Message Date
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
Elias Naur b1130b6729 Mac OS X: Explicitly state the legacy build of lwjgl should be for the PPC architecture. This could fix the build problems on intel macs 2006-11-14 08:36:31 +00:00
Elias Naur cd67b97e7c Made LWJGLUtil.getPathFromClassLoader run the protected ClassLoader.findLibrary in a privileged context. This is apparently necessary to get a valid path in some cases. This fixes (at least) a problem where OpenAL failed to locate the native openal library in a web start program. 2006-11-13 12:21:31 +00:00
Elias Naur 14b68631c9 Windows: Use WindowsKeyboard in WindowsAWTInput to ensure keyboard input. 2006-11-10 15:12:49 +00:00
Elias Naur 3a12b4bdd2 Remove AWTInputAdapter.update() and let users poll() Mouse and Keyboard directly 2006-11-10 13:52:18 +00:00
Elias Naur 216044ffa4 AWTGLCanvas: Make sure we don't paint while destroying the canvas 2006-11-10 11:44:00 +00:00
Elias Naur c0248a7ee4 AWTGLCanvas: Ignore failure to lock drawing surface, since that can happen when the component is being destroyed 2006-11-10 10:20:44 +00:00
Ioannis Tsakpinis 9d0d20f7ac Added 21 new extensions:
EXT_bindable_uniform
    EXT_draw_buffers2
    EXT_draw_instanced
    EXT_framebuffer_sRGB
    EXT_geometry_shader4
    EXT_gpu_shader4
    EXT_packed_float
    EXT_texture_array
    EXT_texture_buffer_object
    EXT_texture_compression_latc
    EXT_texture_compression_rgtc
    EXT_texture_integer
    EXT_texture_shared_exponent
    NV_depth_buffer_float
    NV_fragment_program4
    NV_framebuffer_multisample_coverage
    NV_geometry_program4
    NV_gpu_program4
    NV_parameter_buffer_object
    NV_transform_feeback
    NV_vertex_program4
2006-11-09 22:34:30 +00:00
Brian Matzon 5a7133f543 fixed path issue
added certificate signing
2006-11-09 21:41:58 +00:00
Brian Matzon a92295dec8 oal => devil 2006-11-09 20:27:26 +00:00
Brian Matzon a836570cde added Atsuya Takagi 2006-11-09 20:26:48 +00:00
Elias Naur 17e4a755de Don't use threads to repaint in test.applet.* tests 2006-11-09 11:10:59 +00:00
Elias Naur 6d9aa21e96 Add applettest ant target for easy LWJGL applet testing in appletviewer 2006-11-09 11:03:55 +00:00
Elias Naur 9f3de4fd81 AWTGLCanvas: Synchronize paintGL() to avoid destroyContext while painting 2006-11-07 15:14:31 +00:00
Elias Naur 8164a4a00a Don't include binary native files from bin/ in lwjgl.jar (oops\!) 2006-10-31 09:52:38 +00:00
Elias Naur b80ba7f262 Windows: Fix compiler warning 2006-10-30 15:49:02 +00:00
Elias Naur b2e21da777 Windows: Implemented AWTInputAdapter. 2006-10-30 15:46:42 +00:00
Elias Naur 4c5a2fe644 Fixed AWTUtil.setCursorPosition. Added check to LinuxAWTInput. 2006-10-28 22:06:24 +00:00
Elias Naur b449fff026 Mac OS X: Fixed cursor warping coordinates 2006-10-27 08:15:31 +00:00
Elias Naur d396992cc5 Fixed potential NPE from Cursor.getCapabilities() 2006-10-27 06:27:58 +00:00
Elias Naur d4d39bf869 Made the AWT setCursorPosition garbage free 2006-10-27 06:04:55 +00:00
Elias Naur 23248b01c3 Mac OS X: Implemented AWTInputAdapter 2006-10-26 21:39:37 +00:00
Elias Naur fe7cde5cc5 Linux: Replaced obsolete hasFocus with isFocusOwner 2006-10-26 21:15:50 +00:00
Elias Naur a47e419168 Mac OS X: Moved mouse handling from MacOSXDisplay to MacOSXMouseEventQueue 2006-10-26 20:49:07 +00:00
Elias Naur 24e913477f Mac OS X: Fixed null delta_buffer in MacOSXMouseEventQueue 2006-10-26 20:33:40 +00:00
Elias Naur 3674d843c2 Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example.

Note: This commit is the linux and generic AWT imlementation and can still
change a lot while implementing windows and mac os x.
2006-10-26 20:19:40 +00:00
Elias Naur 0a17002082 Don't register the Display shutdown hook in the static initializer. Register it at create() and remove it at destroy(). This avoids unnecessary conflicts when only using AWT stuff 2006-10-26 19:41:15 +00:00
Elias Naur fe1693a3c9 Mac OS X: Moved registering and unregistering of AWT listeners from MacOSXDisplay to the input handlers 2006-10-26 15:03:47 +00:00
Elias Naur 9e1254f6d1 Mac OS X: Moved AWT input handling to separate AWTUtil.java 2006-10-26 14:47:02 +00:00
Elias Naur 1616724cb5 Removed redundant import 2006-10-26 12:15:46 +00:00
Elias Naur 541ac859b1 Linux: Made cursor handles longs instead of ByteBuffers 2006-10-26 12:14:37 +00:00
Elias Naur 1802fa2d9d Linux: Added locking to LinuxMouse 2006-10-24 11:17:44 +00:00
Elias Naur 2de75e4fd9 Linux: Moved warp Atom from LinuxDisplay to LinuxMouse 2006-10-24 10:43:52 +00:00
Elias Naur a972dd272d Linux: Moved input event processing to LinuxKeyboard and LinuxMouse 2006-10-24 10:39:14 +00:00
Elias Naur 850f3c6b7f Linux: Removed redundant methods from LinuxDisplay.java 2006-10-24 09:59:00 +00:00
Elias Naur e23825c3e5 Linux: Moved more event handling logic to java 2006-10-24 09:52:12 +00:00
Elias Naur cb6a6ff2a2 Linux: Removed redundant include statements 2006-10-24 08:33:09 +00:00
Elias Naur 1f5f8687bb Linux: Moved current_win to java 2006-10-23 20:40:48 +00:00
Elias Naur 61e7c9e081 Linux: Moved screen from native to java 2006-10-23 20:14:45 +00:00
Elias Naur 8296ae06cb Linux: Moved the pointer warp X11 atom from native to java 2006-10-23 19:51:22 +00:00
Elias Naur 5dba786574 Linux: Moved another Display instance to java 2006-10-23 14:22:27 +00:00
Elias Naur 1a83741b89 Linux: Moved another Display instance to java 2006-10-23 14:16:40 +00:00
Elias Naur 8c5f601e31 Linux: Added sanity check to LinuxDisplay.getDisplay() 2006-10-23 14:05:40 +00:00
Elias Naur dd76a4b0d8 Linux: Moved Display pointer from native to java 2006-10-23 13:58:33 +00:00
Elias Naur 2e75098673 Linux: Simplified LinuxMouse 2006-10-23 10:24:03 +00:00
Elias Naur 1c18537f1e AWTGears: Set background of window to black to avoid some resizing artifacts 2006-10-20 12:55:01 +00:00
Elias Naur 5d5dde0aed Remove redundant resizing of AWT canvases in AWT tests 2006-10-20 12:36:51 +00:00
Elias Naur 12d445c7ec Added nicer resizing to AWT tests 2006-10-20 12:32:33 +00:00
Elias Naur 8698cf68f3 Linux: Don't use the SUN specific getScreenFromDevice in LinuxAWTCanvasPeerInfo. This avoids garbage creation per frame and avoids one bit of SUN JRE dependency. 2006-10-20 11:51:34 +00:00
Elias Naur dc4a31e799 Undo debug stuff that accidentially went with the last commit. 2006-10-20 10:44:28 +00:00
Elias Naur d9e94b2d54 Don't repaint() from a separate thread in AWT demos. This results in a smoother rendering. 2006-10-20 10:42:43 +00:00
Elias Naur 9f7da6d483 Windows: Restore the old ToAscii code used on win9x platforms in an attempt to fix broken keyboard input on win98se machines. 2006-10-11 20:26:35 +00:00
Elias Naur dedfaea500 Windows: Don't use a dummy window (HDC) when finding a pixel format but use the actual window directly. This will avoid cases where the pixel format index for the dummy window's HDC wasn't valid for the actual window's HDC. It also avoid unnecessary complexity.
Fix FullScreenWindowedTest to use the Display's current BPP to avoid 24/16 bpp weirdness
2006-10-11 13:48:48 +00:00
Ioannis Tsakpinis 1b1b9c5416 Added missing CURRENT_RASTER_SECONDARY_COLOR enum value (GL 2.1)
Added EXT_gpu_program_parameters extension
2006-10-11 11:21:40 +00:00
Elias Naur ec9b449b78 Made Display.getImplementation package private, and made the input.* packages access it through reflection. 2006-10-08 09:05:16 +00:00
Elias Naur 55f67e68cb Linux: Fix crash when LinuxCanvasImplementation.getScreenFromDevice fails 2006-09-28 21:53:18 +00:00