Commit Graph

1600 Commits

Author SHA1 Message Date
Brian Matzon ea9dfae43e fix for issue with Cursor that turned out to be a leaking DC 2010-01-10 22:46:41 +00:00
Brian Matzon 63ed7b268e call InitCommonControls if no display has been created prior to Alert 2009-12-02 23:11:14 +00:00
Brian Matzon 8bd591fe5e support for tracking mouse outside window on drag, new api for checking if mouse is inside window 2009-09-12 22:15:21 +00:00
Ioannis Tsakpinis b130c415f7 Added support for OpenGL 3.2 and the following extensions: AMD_draw_buffers_blend, ARB_depth_clamp, ARB_draw_buffers_blend, ARB_draw_elements_base_vertex, ARB_fragment_coord_conventions, ARB_provoking_vertex, ARB_sample_shading, ARB_seamless_cube_map, ARB_shader_texture_lod, ARB_texture_cube_map_array, ARB_texture_gather, ARB_texture_multisample, ARB_texture_query_lod, ARB_vertex_array_bgra, EXT_separate_shader_objects, EXT_texture_snorm, NV_copy_image, NV_parameter_buffer_object2. 2009-08-04 18:21:41 +00:00
Brian Matzon 7c9c64bf8e support for alpha blended icons on win32 2009-07-07 19:47:55 +00:00
Brian Matzon c7eabcad3e fixed windows click/movement detection if drag started inside display 2009-06-03 11:08:58 +00:00
Brian Matzon f9b6ab7c58 add missing include to get __TrackMouseEvent exported 2009-05-27 08:04:39 +00:00
Brian Matzon a6ae9f33b5 fix windows issue with mouse down true when released outside window 2009-05-26 20:39:23 +00:00
Elias Naur 68ec5edea1 Linux: made legacy context code conditional 2009-04-24 20:35:33 +00:00
Elias Naur 50203d0d92 Linux: OpenGL 3 attributes support 2009-04-24 20:30:30 +00:00
Ioannis Tsakpinis 578a6d2617 Added GLX_ARB_create_context tokens. 2009-03-26 11:15:43 +00:00
Ioannis Tsakpinis 1e4499f527 Force forward compatible mode when we have GL3.1+ but miss ARB_compatibility.
Added support for ARB_framebuffer_object.
Added support for GLX_ARB_create_context. (WIP)
Improved postfix stripping in the generator.
2009-03-26 11:08:43 +00:00
Elias Naur 218d005aaf Linux: Fixed failure to create window on newer ATI mesa drivers 2009-03-19 21:50:30 +00:00
Elias Naur 94bd43ce19 Windows: Handle missing va_copy macro in MSVC 2008-12-22 16:38:57 +00:00
Elias Naur f8d5028de3 Made sprintfJavaString handle arbitrary length strings and reduce stack usage 2008-12-22 16:27:21 +00:00
Elias Naur 4b93774ef7 Windows 64: Enabled lwjgl64.dll and fixed crash 2008-12-22 11:55:28 +00:00
Elias Naur c6dac86af5 Windows: Fixed type punning compiler warnings 2008-11-22 15:05:07 +00:00
Elias Naur c8990c0915 Windows: Fixed pointer size compiler warning 2008-11-22 15:00:44 +00:00
Elias Naur e436a32741 Windows: Removed unused variable 2008-11-22 14:54:15 +00:00
Elias Naur 69f0e13e3b Windows: Removed unused variable 2008-11-22 14:51:36 +00:00
Brian Matzon b4f3c0e54b windows compile fixes 2008-11-10 20:38:55 +00:00
Elias Naur b5846167bb extgl.h should use definitions from the BSD licensed Mesa gl.h and glext.h instead of the original SGI gl.h/glext.h to avoid the SGI license 2008-11-10 20:07:21 +00:00
Elias Naur 41c90bc7cc Windows: Merged native handling of undecorated and fullscreen window property 2008-10-28 09:53:16 +00:00
Elias Naur d464876fe0 Windows: Only clip mouse to window borders if the lwjgl window is the foreground window 2008-10-27 14:04:12 +00:00
Ioannis Tsakpinis 8525a64d54 Fixed missing braces 2008-09-23 11:49:41 +00:00
Ioannis Tsakpinis b9b1d0b275 Potential fix for PixelFormat choice on ATI cards. 2008-09-17 11:27:49 +00:00
Ioannis Tsakpinis 6ea785334e ContextAttribs: changed factory to constructor initialization
Fixed compatible spelling
Small pbuffer fix
2008-08-19 17:47:24 +00:00
Ioannis Tsakpinis d7ee23f9b2 Added support for OpenGL 3.0 functionality
Added support for OpenGL 3.0 context creation (MAJOR/MINOR versions, DEBUG mode, FORWARD_COMBATIBLE mode)
Added support for OpenGL 3.0 context sharing
Added support for OpenGL 3.0 extension detection
Improved support for floating point PixelFormats (ARB_color_buffer_float)
Added support for packed floating point PixelFormats (EXT_packed_float)
Added support for sRGB PixelFormats (ARB_framebuffer_sRGB)
Added support for pseudo-FORWARD_COMBATIBLE mode (deprecated functions not loaded)
Added support for EXT_direct_state_access
2008-08-19 16:46:03 +00:00
Elias Naur 79cca6e205 Windows: Removed unused dinputhelper.c/h 2008-06-05 13:11:04 +00:00
Brian Matzon 1099551ad9 missing special handler for ALC_ALL_DEVICES_SPECIFIER 2008-06-05 08:12:14 +00:00
Elias Naur 9293ee4073 Windows: Split WindowsDisplay.nDestroyWindow into nReleaseDC and nDestroyWindow 2008-05-05 17:24:42 +00:00
Elias Naur 5e06f19944 Windows: Generalized WindowsDispaly.nCreateWindow 2008-05-05 16:46:16 +00:00
Elias Naur ef5bf0361b Windows: Split nChoosePixelFormat's applyPixelFormat() out in a seperate function 2008-05-01 09:37:21 +00:00
Elias Naur 0a3bf6e075 Windows: Moved icon handles to java 2008-05-01 09:20:57 +00:00
Elias Naur bcb909f5a9 Windows: Moved hwnd and hdc to java 2008-04-30 16:40:14 +00:00
Elias Naur 1006aed308 Windows: Made WindowsDisplayPeerInfo take hwnd and hdc arguments 2008-04-30 16:01:25 +00:00
Elias Naur 2420133bb9 Windows: Moved child window style selection to java 2008-04-30 15:29:39 +00:00
Elias Naur 8b0b1b8b63 Added platform specific getJNIVersion implementations 2008-04-30 14:58:47 +00:00
Elias Naur ccb0bfe4fd Windows: Improved error messages for nChoosePixelFormat 2008-04-29 18:56:46 +00:00
Elias Naur cf6ade2b72 Windows: Fixed compile error 2008-04-29 18:37:51 +00:00
Elias Naur 97405f860f Windows: Added error handling to nCreateWindow 2008-04-29 18:32:08 +00:00
Elias Naur add0189490 NewStringNativeUnsigned should return NULL if argument string is NULL 2008-04-25 17:21:59 +00:00
Elias Naur be0fbdf13b Applet focus fixes 2008-04-13 18:43:27 +00:00
Elias Naur 228f1f0520 Linux: Moved X error handling to java 2008-04-13 08:34:39 +00:00
Elias Naur 261d453a3e Linux: Removed change set code again 2008-04-12 23:09:47 +00:00
Elias Naur 6ac8101392 Linux: Removed library destructor, because lwjgl doesn't fiddle with the global repeat control anymore 2008-04-12 21:49:57 +00:00
Elias Naur 11f25424e2 Linux: Added support for XFixesChangeSaveSet to increase robustness of parented mode 2008-04-12 20:40:27 +00:00
Elias Naur a015dc4558 Linux: Rewrote focus handling to cope with the weird focus behaviour when running in an XEmbed enabled jvm (applet mode) 2008-04-12 20:07:23 +00:00
Elias Naur 657bd156e2 Windows: Removed directinput files, since they are now unused. Fixed headers build.xml target 2008-04-10 20:47:29 +00:00
Elias Naur e50dc04191 Removed AWTInputAdapter, since Display.setParent() works much betterdiff 2008-04-10 20:25:54 +00:00
Elias Naur 450634c49c Linux: Removed grab/ungrabServer logic and replace it with catching of any X errors occruing because of a XSetInputFocus race 2008-04-09 23:40:18 +00:00
Elias Naur b5c893d207 Linux: When parented, take focus on click 2008-04-09 18:09:15 +00:00
Elias Naur 8d5e9695a5 Removed unused native function getJVM() 2008-04-07 19:31:23 +00:00
Elias Naur 61a71ea912 Let the Display resize itself to match its parent, if non null 2008-04-07 19:21:40 +00:00
Brian Matzon 175642d593 updated and added license where needed 2008-04-07 18:42:36 +00:00
Elias Naur c1d03afb8e Mac OS X: Fixed 10.5 compiler warning 2008-04-07 13:01:52 +00:00
Elias Naur 3948769802 Windows: Implemented Display.setParent support 2008-04-07 10:18:09 +00:00
Elias Naur e2596d8efa Linux: Use icon mask as monochrome to please some xorg versions 2008-04-07 09:23:27 +00:00
Elias Naur bf25259325 Linux: Attempt to avoid race condition when tracking Display parent focus 2008-04-06 21:34:22 +00:00
Elias Naur c499f33bcf Added experimental Display.setParent to allow Display to be embedded in an AWT Canvas. Added basic linux implementation and test. 2008-04-06 20:56:52 +00:00
Elias Naur bc33b3c4d5 Windows: Moved Display.setIcon logic to java 2008-04-01 20:45:24 +00:00
Elias Naur 395cf797cb Linux: Added alpha mask support to Display.setIcon 2008-04-01 19:46:20 +00:00
Elias Naur f2b73f57de Mac OS X: Added missing #import 2008-02-19 14:06:48 +00:00
Elias Naur dc3999b075 Removed devil and fmod support. yay. 2008-01-21 21:38:29 +00:00
Elias Naur 8e2233167d Linux: Fixed test for XkbSetDetectableAutoRepeat success 2008-01-19 08:57:20 +00:00
Elias Naur 8f677f1585 Linux: use XkbSetDetectableAutoRepeat to detect repeated key events more reliably 2008-01-07 18:29:04 +00:00
Elias Naur 4bf0703eb1 Windows: Pulled DefWindowProc calling to java side 2007-12-13 09:29:36 +00:00
Elias Naur e03ee5d4d7 Windows: 64bit compilation fixes 2007-12-04 10:58:10 +00:00
Elias Naur 9d7eb11600 Windows: Removed unused local declarations from WindowsContextImplementation.c 2007-12-04 09:27:54 +00:00
Elias Naur 5e830de033 windows: Use throwFormattedException, not throwException in tryLoadOpenAL() 2007-11-14 11:10:52 +00:00
Elias Naur b19f24ec61 openal: Don't free native path too early (duh) 2007-11-14 11:07:22 +00:00
Elias Naur 74ab4f7fa4 openal: Improved error reporting from native library load 2007-11-14 10:45:07 +00:00
Elias Naur d616f8439a Linux: use throwFormattedException in extgl_Open instead of custom message formatting 2007-10-30 18:34:38 +00:00
Brian Matzon 8ee25e22cd removing direct x, can be picked up in the lwjgl-directx tag 2007-10-20 19:02:48 +00:00
Mark Bernard 8291c7f163 2007-08-22 23:11:54 +00:00
Elias Naur 8bb3e5aec0 Windows: Removed an unused parameter from WindowsDisplay.clipCursor 2007-07-28 20:46:17 +00:00
Elias Naur bea9667f8b Mac OS X: Don't use global is_grabbed variable in MacOSXMouseEventQueue.nWarpCursor 2007-05-31 21:00:13 +00:00
Elias Naur 6939f9170a Windows: Fix up WindowsContextImplementation.nSetSwapInterval 2007-05-27 15:32:25 +00:00
Elias Naur 42e75bb619 Windows: Check for gl errors after setting swap interval 2007-05-27 05:19:19 +00:00
Brian Matzon 6768532934 reworked typecasting with a dash of insanity to look more like nalBufferData - lisp anyone? 2007-05-20 17:51:28 +00:00
Brian Matzon fc770dc67e fixed issues with typecasting of buffer type 2007-05-20 17:44:59 +00:00
Elias Naur eef220a10f Use event timestamp to detect key repeat events in KeyboardEventQueue 2007-05-13 21:11:53 +00:00
Elias Naur a42f401331 Simplified ALC10.nalcOpenDevice 2007-04-26 05:58:35 +00:00
Elias Naur 649822f65b Windows: Use TranslateMessage and WM_CHAR to receive character input instead of manual translation. This change fixes composed characters. 2007-04-24 14:41:17 +00:00
Elias Naur 13cec51058 Windows: Convert WindowsKeyboard to use windows messages instead of DirectInput. 2007-04-24 13:40:13 +00:00
Elias Naur 23701fdf75 Windows: Remove dependency on DirectInput for WindowsMouse used by WindowsDisplay. Keyboard conversion coming up. Reasons:
1. DirectInput is deprecated (http://en.wikipedia.org/wiki/DirectInput). Specifically, Microsoft recommends using regular windows messages for keyboard and mouse input.
2. Not using DirectInput enable us to use the Raw Input JInput plugin to access multiple mice (and keyboards).
3. We're already using windows messages for features DirectInput never supported, so by removing DirectInput dependency, we get rid of some special case code.
4. When we're only using windows messages for input, we're (theoretically) more compatible than with a dependency on a properly working DirectInput.
2007-04-24 09:30:03 +00:00
Elias Naur 403fd47e2e Windows: Fixed NULL check in native setupCursorClipping 2007-04-23 20:50:44 +00:00
Brian Matzon 2d7c4b20d7 fixing warnings 2007-04-19 23:13:52 +00:00
Brian Matzon 5caece9329 fixing warnings 2007-04-19 23:02:57 +00:00
Brian Matzon 0ac9e5ff83 removing ALC 2007-04-19 22:58:13 +00:00
Brian Matzon aa94d36e07 removed some null checks 2007-04-19 22:49:49 +00:00
Brian Matzon bd00f39ff9 using NewStringNativeWithLength 2007-04-19 22:39:08 +00:00
Brian Matzon 4152deb7c4 using NewStringNativeWithLength 2007-04-19 22:21:04 +00:00
Brian Matzon 3630ebd6c2 using NewStringNativeWithLength 2007-04-19 22:20:36 +00:00
Brian Matzon 844ae6dce2 openal 1.1
exposing device and context
2007-04-19 22:20:14 +00:00
Brian Matzon 6889c876f6 using NewStringNativeWithLength 2007-04-19 22:18:16 +00:00
Elias Naur 81564102c3 Removed generated files from version control - all platforms have support for the java 1.5 apt tool 2007-04-03 10:06:12 +00:00
Elias Naur fe196168ea Updated generated files 2007-04-03 08:21:46 +00:00
Elias Naur 176a617393 Windows: Native compile fixes 2007-03-30 19:00:59 +00:00
Elias Naur 55a889d053 Use jawt_md.h instead of jawt.h since that is apparently the official way of using JAWT (from the example in jawt.h) and is required for lwjgl to compile with the ibm 1.5 jdk 2007-03-13 08:18:00 +00:00
Elias Naur 3c44d0c7be Added error checking to getBooleanProperty 2007-03-09 14:34:27 +00:00
Elias Naur eeb711239e Added error checking to NewStringNative 2007-03-09 14:28:52 +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
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 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 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 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 ceab6f366e Commit changes in automatically generated files 2006-12-20 19:23:35 +00:00
Elias Naur 17d7df3f19 Check cached buffer results in OpenGL functions for matching capacity 2006-12-20 17:55:10 +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
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 5d6ae4138a Autogen changes from previous commit 2006-11-19 22:06:46 +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
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 ede7b63e46 fixed relative path issues when dlopen is being called 2006-11-18 18:39:26 +00:00
Ioannis Tsakpinis 1bb95e94f4 Removed duplicate functions (based on NVIDIA's glext.h) 2006-11-15 18:46:22 +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
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 a47e419168 Mac OS X: Moved mouse handling from MacOSXDisplay to MacOSXMouseEventQueue 2006-10-26 20:49:07 +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 541ac859b1 Linux: Made cursor handles longs instead of ByteBuffers 2006-10-26 12:14:37 +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 dd76a4b0d8 Linux: Moved Display pointer from native to java 2006-10-23 13:58: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 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 55f67e68cb Linux: Fix crash when LinuxCanvasImplementation.getScreenFromDevice fails 2006-09-28 21:53:18 +00:00
Elias Naur c91f78e1f6 Windows: Don't ignore errors from CoInitialize 2006-09-21 13:49:49 +00:00
Elias Naur 87523ce63a Windows: Got rid of dummy window in WindowsDisplayPeerInfo 2006-09-19 14:17:13 +00:00
Elias Naur 26f2014516 Windows: Don't discard messages from other windows in the message handler 2006-09-19 11:06:02 +00:00
Brian Matzon 93aa253732 fixed params (int -> float) 2006-08-31 16:40:53 +00:00
Ioannis Tsakpinis 84fdaeaff3 Added EXT_blend_color & EXT_blend_minmax extensions. 2006-08-16 10:42:43 +00:00
Elias Naur dde118016c Update to beta3 2006-08-10 08:45:10 +00:00
Ioannis Tsakpinis 02e0c84e0e 2006-08-03 09:51:45 +00:00
Ioannis Tsakpinis 84600dffdb Added SGIS_generate_mipmap & SGIS_texture_lod extensions 2006-07-25 15:31:16 +00:00
Elias Naur 375a4490cf Windows: Fix warning 2006-07-15 21:37:50 +00:00
Elias Naur bd474ceaa9 Windows: Replace _WIN32 macro with _MSC_VER since the conditionals are really for the MSVC compiler, not for the windows platform in general. Code cleanup. 2006-07-15 21:01:11 +00:00
Elias Naur 050638760e Windows: Don't use a non-portable anonymous struct in contex.h 2006-07-15 20:25:56 +00:00
Elias Naur 5e012ce2e1 Windows: Cleanup 2006-07-15 19:55:42 +00:00
Elias Naur d9afe6b784 Windows: Moved NativeSysImplementation.java to WindowsSysImplementation.java and moved some native code to java. 2006-07-15 19:45:36 +00:00
Elias Naur 008c59a301 Windows: Move more of Display.getVersion to java 2006-07-15 19:25:13 +00:00
Elias Naur 01f382fa3b Windows: Added NULL check to malloc in display.c 2006-07-15 18:45:20 +00:00
Elias Naur 6b68892cc1 Windows: Forgot display.c in last commit 2006-07-15 18:43:04 +00:00
Elias Naur 52396b5a5c Windows: Don't release clipboard data before use 2006-07-15 18:31:09 +00:00
Elias Naur 0c2f7092e2 Windows: Removed unused variable from display.c 2006-07-15 17:44:53 +00:00
Elias Naur 3b03560ee7 Split the external LWJGL version from the internal version of the native JNI library. The internal JNI version is now an integer. This has multiple advantages over the old way:
1. The JNI_VERSION field is now included automatically in the generated JNI headers, relieving us of the burden of updating the version number in both java and native code.
2. We can update the JNI version with every non-compatible change of the JNI library API, not just once per release, giving us extra safety when users download and build LWJGL from SVN.
3. We can now avoid rebuilding natives if a particular release only
contains java changes. Currently, This is mostly a problem when Brian bumps the
external version prior a release and I forget to re-build the natives ;)
2006-07-14 16:14:52 +00:00
Elias Naur f15c904fce Windows: Fixed setCursorPosition. 2006-07-14 10:38:31 +00:00
Elias Naur bb8dcf3996 Windows: Rename Win32* files to Windows* 2006-07-12 18:32:58 +00:00
Elias Naur 7815607e09 Windows: move natives from src/native/win32 to src/native/windows because the source really is bitness neutral, not 32 bit specific. 2006-07-12 18:09:11 +00:00
Elias Naur 624f93ba34 Windows: Use the standard _WIN32 macro instead of the LWJGL defined WIN32. 2006-07-12 16:55:05 +00:00
Elias Naur c5b91e0f40 Windows: Pass correct class reference to CallStaticVoidMethod JNI 2006-07-10 15:46:21 +00:00
Elias Naur 3aa23f0c28 Windows: Fixed fetches of a boolean field with GetIntField JNI 2006-07-10 15:32:14 +00:00
Elias Naur 6be8bc806e Linux: Fixed fetch of a boolean field with GetIntField JNI 2006-07-10 15:29:29 +00:00
Elias Naur 6d751849d1 Fix compile warning 2006-07-10 00:44:49 +00:00
Elias Naur a84ecf8bed Windows: Fix issue when AWT core classes invoke the LWJGL message handler through a synchronous SendMessage. Bug triggered by jmetest.awt.swingui.TestJMEDesktop. 2006-07-10 00:34:28 +00:00
Elias Naur 67957781a2 Windows: don't cache the JNIEnv pointer in the message handle, but acquire it through the global JavaVM handle. 2006-07-09 08:31:49 +00:00
Elias Naur af9e73ed11 Linux: Made most fields in LinuxDisplay non-static 2006-07-08 22:17:09 +00:00
Elias Naur c208833e25 Windows: Moved gamma and display modes settings and more boolean state to java side. 2006-07-08 21:57:20 +00:00
Elias Naur cb8f098e17 Linux: Remove Makefiles 2006-07-07 14:06:46 +00:00
Elias Naur bf414409c0 Mac OS X: Added support for compile_native target. Moved optional libraries to compile_native_optional target 2006-07-07 12:41:36 +00:00
Elias Naur c64dd328f9 Added a native NewStringNativeUnsigned to avoid compile warnings 2006-07-07 10:36:26 +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
Brian Matzon e676edc5c0 support for version
beta2 tag
2006-07-02 21:59:10 +00:00
Brian Matzon 06e4daaa75 beta2 tag 2006-07-02 21:58:37 +00:00
Brian Matzon d7e7b299c1 beta2 tag 2006-07-02 21:58:00 +00:00
Elias Naur 33540d8195 Windows: Fixed compile error 2006-07-01 05:33:14 +00:00
Elias Naur 322351b216 Linux: native code cleanup 2006-06-30 19:28:00 +00:00
Elias Naur 744fbdd26f Windows: Fixed Display.setIcon memory leak 2006-06-30 19:08:20 +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 0f12ecee3b Windows: Generalize getMin/MaxCursorSize to one native GetSystemMetrics 2006-06-27 11:11:37 +00:00
Elias Naur d7ba837de9 Windows: Moved isUndecorated from global to local variable 2006-06-26 14:28:52 +00:00
Elias Naur da1b81a57d Windows: Moved is_dirty from native to java 2006-06-26 14:24:45 +00:00
Elias Naur c2dfea3214 Windows: moved closerequested from native to java 2006-06-26 14:05:42 +00:00
Elias Naur 6cf49718db Windows: LWJGL didn't work well with jinput, but compatibility could be greatly improved if LWJGL used DirectInput 8 (like jinput). This can't be done unconditionally, since we need the DX3 support for older versions of windows. So, I've moved most Mouse and Keyboard stuff from native to java side and generalized DirectInput access through an abstract base class, with two concrete subclasses, one for dx3 and one for dx8. 2006-06-26 13:50:48 +00:00
Elias Naur e99b357a1b Windows: Cleanup of native input code 2006-06-23 16:45:21 +00:00
Brian Matzon 9e811f332a fixed offset/length to use buffer properties 2006-06-23 08:16:27 +00:00
Elias Naur 72c0fc81b8 Windows: Make sure the DirectInput even buffer is properly flushed before switching to grabbed state. 2006-06-18 09:08:55 +00:00
Elias Naur d7542e3a71 Windows: Fixed spurious mouse button events after a Mouse.setGrabbed(true) 2006-06-18 08:51:03 +00:00
Elias Naur c77c8069d6 Windows: Fix Windows sometimes marking LWJGL apps as "not responding" 2006-06-17 23:46:59 +00:00
Elias Naur 5b18caad92 windows: cleanup 2006-06-15 15:08:06 +00:00
Elias Naur cf56cfacbb windows: Add support for WGL_ATI_pixel_format_float 2006-06-15 15:03:29 +00:00
Elias Naur ca4ffed1b1 Win32: Fixed exception message when the ARB pixel format path is selected, but the dummy pixel format is -1. 2006-06-12 14:17:42 +00:00
Elias Naur c68a8ed314 Win32: Make sure the ARB pixel format path is selected when floating point formats are required 2006-06-12 14:09:49 +00:00
Elias Naur 7ebfbf8bfe Mac OS X implementation of floating point pixel formats 2006-06-12 13:33:07 +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 9f41ecaedb Removed Keyboard.isStateKeySet() - it is easily replaced by Toolkit.getLockingKeyState() 2006-06-10 20:42:26 +00:00
Elias Naur 7c34e2cddb Win32: Track directinput mouse buttons in the windows message state array. This should avoid some problems when switching from grabbed to non-grabbed 2006-05-30 08:48:16 +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
Ioannis Tsakpinis 843ce1bc27 Added EXT_timer_query extension
Added support for long (int64) types
2006-05-25 13:03:35 +00:00
Elias Naur cce631748d Win32: Updated various native string handling to use the new _s "secure" variants. 2006-05-18 12:11:37 +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
Brian Matzon 7c08c27dd8 1.0beta version string 2006-05-14 21:54:48 +00:00
Elias Naur ec67322e64 Linux: Fixed accum color bits when accum_bpp = 0 2006-05-13 10:03:19 +00:00
Elias Naur 1ea59789f6 Mac OS X: build fixes 2006-05-06 19:45:12 +00:00
Elias Naur a9651b1852 Mac OS X: native build.xml tweak 2006-05-01 12:24:13 +00:00
Elias Naur 45f9823958 Mac OS X: native build.xml tweak 2006-05-01 12:14:16 +00:00
Elias Naur 0f5489a883 Mac OS X: Replaced liblwjgl-legacy.jnilib and liblwjgl.jnilib with one liblwjgl.jnilib containing gcc 3 compiled ppc code in the ppc part and gcc 4 compiled intel code in the intel part. That way, we should be able to support all platforms and architectures with one library. I've replaced the Makefile.* files with a single build.xml to do the native building and merging of object code. 2006-05-01 12:07:58 +00:00
Elias Naur 3ce92a9563 Fixed warning from generated native code on mac os x 2006-05-01 08:58:26 +00:00
Brian Matzon 9130b91027 updated version to 1.0 2006-04-30 21:15:14 +00:00
Brian Matzon 5db7a9a7b8 removed printf statement 2006-04-13 13:36:03 +00:00
Elias Naur 0aa0ec5526 Added glPrioritizeTextures and glAreTexturesResident 2006-04-05 11:20:36 +00:00
Elias Naur d7c55744ce Widened VBO/PBO buffer offsets and sizes to long to better match the GLsizeiptr and GLintptr native types 2006-02-26 11:44:34 +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 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 ac3a70926b support for ALC_ENUMERATION_EXT using LWJGL specific method: AL.getImplementations 2006-02-02 22:34:28 +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 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
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 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 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
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
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
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
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 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 95e35d95ac OpenAL: Fix the declaration of alGetListenerf and alGetListeneri 2005-11-16 09:19:18 +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
Brian Matzon 8e28671ce0 dynamic stub support 2005-11-02 22:04:15 +00:00
Elias Naur 140e3fa3b7 Added support for doubles (ALdouble and GLdouble) 2005-11-02 09:28:12 +00:00
Elias Naur 706a263c75 Added missing @Const annotations to opengl and openal functions 2005-10-28 15:43:51 +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