Commit graph

37 commits

Author SHA1 Message Date
Brian Roberts 05a083ca6f
Merge pull request #1234 from marauder2k9-torque/virtuals-override
Virtuals override
2024-03-21 10:43:26 -05:00
AzaezelX c337d5a9d2 clang tidy misc fixes
adress mixed || plus && concerns raised
2024-03-18 20:11:44 -05:00
marauder2k7 2b295fb7f0 rest of virtuals removed
virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
2024-03-18 18:40:22 +00:00
marauder2k7 2e91837f6a Update thread.cpp
fix linux thread tests.
2023-07-27 19:46:04 +01:00
XXTH ed1402cbd3 better cpu count guess 2023-05-12 13:47:55 +02:00
XXTH 4a0c4a69f0 added comments 2023-05-12 13:32:01 +02:00
XXTH cb47c2849c disabled PosixCPU info for freebsd
added sdlCPUInfo
2023-05-12 13:17:35 +02:00
AzaezelX 835d6f009a thread var initialization fixes 2023-05-01 14:17:17 -05:00
Robert MacGregor d5d846f311 * BugFix: Correct invalid fall-through behavior in sdlInputManager.cpp. 2022-05-25 19:25:33 -04:00
Robert MacGregor 1b6b803a20 * BugFix: Clear a lot of warnings and correct a few actual programming errors along the way. 2021-10-04 20:04:21 -04:00
Jeff Hutchinson 633bc040d0 Update thread ids for 64bit support. 2021-08-29 20:34:57 -04:00
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