AzaezelX
254ac462b5
sdl usage standards proposal 3:
...
again maintains fallbacks for folks that just don't want to use the lib (though if we do want to go that route, we'll likely want to re-review a few commits and put fallbacks, well, *back* at some point)
includes sdl in torqueconfig.h if in use to kill duplication.
adds a generic sdlPlatform.cpp for general methods, oneliners, and the like
2020-12-31 14:44:39 -06:00
AzaezelX
bd8a72005e
uninitialized variables-platform
...
(cherry picked from commit 36fd324de7a29a8f4bb84b7622ae925acb1d3760)
2020-05-11 15:15:01 -05:00
AzaezelX
059d531b62
linux followup work by tim
2019-08-21 03:12:54 -05:00
Areloch
8717c6a376
Merge pull request #2300 from OTHGMars/SDL_Joystick2
...
Sdl joystick2
2019-01-21 15:17:31 -06:00
OTHGMars
3af77bbf15
Adds support for SDL joystick and game controllers.
2019-01-10 20:09:05 -05:00
Glenn Smith
a78235dd06
Fix Input::getKeyCode on software keyboard layouts
...
Input::getAscii goes Torque keyCode -> SDL Scancode -> SDL Keycode -> SDL ascii key name
Input::getKeycode used to be SDL ascii key name -> SDL Scancode -> Torque keyCode
This mismatch made software keyboard layouts behave incorrectly in different places. For example, you would bind a key to an ActionMap and it would activate with a different button than specified.
2019-01-10 04:15:22 -05:00
Lukas Joergensen
2bbc716db6
Eliminate unnecessary uses of ConsoleFunction
2018-04-17 21:41:29 +02:00
Areloch
2ca6af8e48
Refactors the Popup menus and GuiMenuBars to remove unneeded duplication and platform-specific/deprecated code.
2017-11-11 01:21:48 -06:00
Areloch
25686ed4be
Implementation of sRGB image support. Overhauls the linearization setup to utilize the sRGB image types, as well as refactors the use of ColorF and ColorI to be properly internally consistent. ColorIs are used only for front-facing/editing/UI settings, and ColorFs, now renamed to LinearColorF to reduce confusion of purpose, are used for color info in the engine itself. This avoids confusing and expensive conversions back and forth between types and avoids botches with linearity. Majority work done by @rextimmy
2017-06-23 11:36:20 -05:00
Thomas "elfprince13" Dickerson
cd98ee730f
Matched up platform semaphore declarations
2017-01-05 20:00:33 -05:00
rextimmy
415f4a046e
OpenGL vsync fixes.
2016-12-23 13:59:55 +10:00
Jeff Hutchinson
0296e6d3fd
Fix merge conflict and add check for unix and not apple for glx
...
Merge branch 'development-gg' into gladdev
# Conflicts:
# Tools/CMake/libraries/glad.cmake
2016-11-02 21:55:24 -04:00
Azaezel
1ee127b753
more unused variable cleanups
2016-10-16 14:41:34 -05:00
RexTimmy
3b1d84fe5c
SDL & Win32 platform threads cleanup.
2016-09-28 11:13:25 +10:00
RexTimmy
dd64004eaf
MacOS platform support.
2016-09-28 11:09:48 +10:00
Jeff Hutchinson
cfb3ad598f
SDL support for glad
2016-09-11 21:59:48 -04:00
Areloch
51049b6e8c
Fixes the member-of-class check order to properly sort the context. Also fixes a bug with the spacer entries being filtered from the popup menu, which threw off the selection.
2016-07-06 00:46:16 -05:00
Areloch
906cc0ef39
Forgot copyright header.
2016-07-04 16:02:49 -05:00
Areloch
818b617972
Implements the right-mouse popup menus in the editor in SDL to make it match to Windows.
2016-07-04 16:01:49 -05:00
Jeff Hutchinson
3bb4fda47a
SDL epoxy stuff.
2016-03-25 21:11:42 -04:00
Anis
6a2d394d90
Merge pull request #1348 from hpvb/intel-mesa-compile-fix
...
Fix running on Linux / Intel Mesa drivers
2016-02-20 14:50:22 +01:00
Azaezel
ac515a9ab1
release the mouse from window constraints when poping up a window prompt
...
like, say, assertfatal, to allow clicking in the popup.
2015-08-10 21:54:30 -05:00
Areloch
b614d87e78
Fixes the menubar functionality when using SDL.
...
This resolves menu order, cleanup and close/re-open issues, as well as crashes on close.
It also modifies the look slightly to look closer to the windows menubar to keep a cohesive look regardless of platform.
2015-08-04 22:57:25 -05:00
Hein-Pieter van Braam
5d91cf90b3
Fix running on Linux / Intel Mesa drivers
...
* Explicitly request a GL 3.2 context
* Enable 'experimental' extensions on glew (This appears necessary to get glew to work with explictly set GL versions)
2015-07-30 22:18:00 +02:00
James Urquhart
3f97c2cedd
Fix building on GCC
2015-02-09 16:14:14 +00:00
LuisAntonRebollo
aa35157eef
PlatformSDL implementation.
2015-01-19 01:17:37 +01:00