md-5
e503ea631c
Force high performance GPU for Nvidia Optimus systems
2014-12-14 08:41:37 +11:00
Ioannis Tsakpinis
d5d9f06160
Convert local WindowsDisplay jclass reference to global.
2014-01-14 17:11:39 +02:00
Ioannis Tsakpinis
66c987f9c2
Fixed Rect/RECT conversion and added a workaround that resets the OpenGL client area when we toggle resizable after window creation.
2013-12-13 15:33:13 +02:00
Ioannis Tsakpinis
1703b62ed5
Removed fullscreen CDS_TEST. It's very slow and unnecessary.
2013-12-03 17:42:03 +02:00
Ioannis Tsakpinis
c0b19b7743
Another attempt to fix focus problems with Display.setParent on Windows:
...
- Reverted to WS_CHILD in window flags.
- Added WM_MOUSEACTIVATE handling: Focus the display + return MA_NOACTIVATE.
- Removed unnecessary appActivate calls in WM_ACTIVATE. We don't receive WM_ACTIVATE with WS_CHILD and the focus events do the job just fine.
- Detect parent window focus in update and force focus the display. This is useful when we alt-tab to the parent window and we don't receive any events.
2013-04-17 22:19:38 +03:00
Ioannis Tsakpinis
5400bb27db
Misc fixes and improvements on Windows:
...
- Cleaned up cl flags and enabled parallel compilation. Native compilation
is now multiple times faster.
- Fixed all /W3 compilation warnings.
- Changed window flag from WS_CHILDWINDOW to WS_POPUP when Display.setParent
is used, in an attempt to fix focus-related issues.
2013-01-29 22:53:11 +02:00
Ioannis Tsakpinis
62b8d36002
Changed Get(Async)KeyState return type to short.
2013-01-25 15:28:17 +02:00
Ioannis Tsakpinis
5dea782de8
Fixed pbuffer + MSAA pixel format config on NV drivers.
2012-12-17 13:57:14 +02:00
Ioannis Tsakpinis
814f9a141e
Attempt to fix lost key up events when Display is out of focus. (Windows)
2012-08-23 10:36:12 +00:00
Brian Matzon
b4cc6176e7
fixed issue with win32 get x/y returning client-area coords
2012-07-14 23:29:21 +00:00
Ioannis Tsakpinis
67945fe317
Added unicode support on Windows.
...
Fixed AL and GLES native stub bindings.
Replaced many GetStringNativeChars usages with a Java implementation.
2011-08-16 22:17:32 +00:00
Brian Matzon
087d0f4ba9
Initial stab at win32 resize api
2011-07-21 22:52:16 +00:00
Ioannis Tsakpinis
eff8493ef6
Added support for NV_present_video and NV_video_capture.
...
Re-designed WindowsPeerInfo so that we can more easily use WGL extensions in the future.
2011-05-21 10:48:05 +00:00
Ioannis Tsakpinis
40cbf3e45f
Added support for OpenGL ES.
2011-05-17 16:53:57 +00:00
Ioannis Tsakpinis
1aa9ab5104
Added support for OpenCL & CL/GL interop + minor improvements. [WIP]
2010-09-26 23:43:24 +00:00
Brian Matzon
8eb55941c6
fixed issue with single-line if
2010-07-12 12:04:56 +00:00
Ioannis Tsakpinis
b5c457f156
Touched a few files to get them to recompile.
2010-06-03 15:49:26 +00:00
Ioannis Tsakpinis
c0d5c751cf
Added missing brackets around COLOR_SAMPLES_NV.
2010-06-02 23:35:38 +00:00
Ioannis Tsakpinis
21b3c3d818
Added PixelFormat support for framebuffer CSAA (NV_multisample_coverage, WGL & GLX only).
...
Added support for AMD_name_gen_delete and AMD_debug_output. The AMDDebugOutputCallback class enables query-less message handling.
Added support for extension aliases.
2010-05-27 22:56:29 +00:00
Ioannis Tsakpinis
6998610cce
Fixed mouse grabbing on secondary monitors.
...
Added extra device polling when vsync is enabled, to reduce input lag.
2010-03-31 23:56:24 +00:00
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
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
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
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
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
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
Brian Matzon
175642d593
updated and added license where needed
2008-04-07 18:42:36 +00:00
Elias Naur
3948769802
Windows: Implemented Display.setParent support
2008-04-07 10:18:09 +00:00
Elias Naur
bc33b3c4d5
Windows: Moved Display.setIcon logic to java
2008-04-01 20:45:24 +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
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
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
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
4152deb7c4
using NewStringNativeWithLength
2007-04-19 22:21:04 +00:00
Brian Matzon
3630ebd6c2
using NewStringNativeWithLength
2007-04-19 22:20:36 +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
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
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
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
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
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
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
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