Commit graph

121 commits

Author SHA1 Message Date
Lukas Aldershaab 89b0c7f73b Console Refactor 2023-09-13 10:33:20 +02:00
marauder2k7 f2292a6a1f missed define 2023-07-25 13:30:53 +01:00
marauder2k7 f452ea9823 Update sdlWindowMgr.cpp 2023-07-25 11:25:42 +01:00
marauder2k7 69ab86f87b Update sdlSplashScreen.cpp 2023-07-25 10:43:24 +01:00
marauder2k7 ce36ea6c0b Revert "SDL.h"
This reverts commit ec5624f890.
2023-07-25 07:03:32 +01:00
marauder2k7 ec5624f890 SDL.h
should probably put access to all sdl header files into 1 location...
2023-07-25 05:29:48 +01:00
marauder2k7 c09f79d199 separate testing environment
-Separate main for running unit tests
-Move unit tests into testing folder
2023-07-24 12:38:36 +01:00
Areloch 368b687043 This implements a fix to an issue with the CICD that causes a segfault.
The fix adds a sanity check to the D3D and GL device enumeration function that exits early if there's no registered display from the OS(implying it's running in commandline).
With newer versions of SDL, attempting to enumerate the GL device causes a segfault because the OS will return back a valid context, but the context isn't actually valid. So when tested against, it crashes. Avoiding enumerating the device when you're not in a position to render works around the issue.

TODO: If the machine is running in terminal-only mode, and thus has no valid render context, but still has a monitor plugged into the machine, it can sidestep the sanity check and still result in a segfault. Need a more robust check for that circumstance in a future fix.
2023-07-23 01:04:29 -05:00
AzaezelX dfd3e65ba4 gtest tweaks
refactor concurency test conu=sumer thread runner to generate timeouts at excessive attempts (32ms*runlength)
threadsafefreelist reporting augs
scripttest object name conflict resolutions
skip testing platform window creation if no monitor was found
2023-07-13 17:16:50 -05:00
AzaezelX 0d4221fa59 uninitialized and unused value cleanups
(cherry picked from commit 1f08602cf0ad84409cd8b3520510f9c6ce7d5f9c)
2023-05-01 10:40:02 -05:00
OTHGMars 640af98807 Monitor DeviceId setting.
The SDL_WINDOWEVENT_DISPLAY_CHANGED event reports an incorrect DeviceId when changed via command. The resolution sanity check that is applied when changing monitors is moved to the SDL_WINDOWEVENT_MOVED event where DeviceId is properly detected.
2022-09-29 03:45:25 -04:00
OTHGMars 13a53dd0ca WinKey+Shift+L/R Arrow handler.
Attempts to constrain canvas when switching between monitors via keyboard shortcut.
2022-08-15 03:10:42 -04:00
Robert MacGregor ba07e6c6d7 * Cleanup: Remove the partial editor tools integration from the TORQUE_SECURE_VFS implementation in preference for developers building mod tools builds instead. 2022-06-13 08:08:43 -04:00
Robert MacGregor 161ffc62fe Merge branch 'Preview4_0' into feature-vfs-security 2022-06-13 08:05:26 -04:00
dottools 0f81ececae Engine SDL: Use screen space coordinates for both mouse pointer set and get position
Changed mouse pointer coordinates from client to screen space. Done in order to be consistent with existing engine comments, API help doc string, and how it used to work in Win32 window management code.
2022-05-30 16:14:18 -05:00
Robert MacGregor e686a9850e * BugFix: Correct the MacOS hotkey workaround causing eg. the Windows key to potentially be processed as part of a hotkey combo. 2022-05-25 21:50:14 -04:00
Robert MacGregor 3f944874f3 * BugFix: Correct MacOS not responding to Command+C, Command+X, Command+A and Command+V by removing a hack in guiTextEditCtrl and shifting the logic to sdlWindow. 2022-05-25 21:46:12 -04:00
Robert MacGregor 0e93373824 * BugFix: When querying against root with Torque::FS::DumpDirectories, correctly return directories with their path.
* Adjustment: Add commenting to some of the new programming.
* Adjustment: Tweak fileCreatedTime and fileModifiedTime functions to use the VFS.
2021-12-20 19:26:32 -05:00
Robert MacGregor 277cdf67b0 * Feature: Initial secure VFS implementation with asset import capability. 2021-12-17 21:16:42 -05:00
Robert MacGregor 74cc60508b * BugFix: More cleanup of MSVC compiler warnings. 2021-10-07 01:10:00 -04:00
AzaezelX 431fb05b6f get the splash screen on linux to stop corrupting the main window 2021-08-12 18:13:33 -05:00
OTHGMars de1e6df64b Removes redundant ScreenResChangeSignal trigger. 2021-05-14 03:50:28 -04:00
Lukas Aldershaab c999baf7ed Moves from using dStrCmp to the new String::compare static functions. Keeps things cleaner, consistent, and works with intellisense. 2020-10-03 14:37:55 +02:00
Areloch 26ef40950b Updated version of OTHGMars' updated window and resolution options modes.
Additional changes include disabling certain options when they are not valid(ie, resolution is disabled when in borderless mode)
2020-09-20 02:06:15 -05:00
Areloch 7d0831143c Captures secondary window close events so secondary windows can be closed via hitting the x on the window itself. 2020-07-26 15:58:53 -05:00
AzaezelX a8b6327091 conforms platformWindow<implementations> to use _setVideoMode internals so that those are called by
void PlatformWindow::setVideoMode(const GFXVideoMode &mode)
{
   _setVideoMode(mode);
 getScreenResChangeSignal().trigger(this, true);
}

allowing the resize trigger to go off, as well as any other shared functionality we want to slim the per-implementation specs down to later down the line
2019-11-06 22:24:12 -06:00
Areloch 25a117159f Merge pull request #113 from Azaezel/alpha40VolfogTriggerTrip
set volfog to use the standard window-resized trigger for it's update
2019-10-24 21:20:53 -05:00
Areloch cba14c035f Change Asset Browser logic to utilize folder heirarchy instead of strict Asset Type filtration
Added navigation history to AB, as well as ability to navigate via forward and backward buttons and breadcrumb buttons
Added folder 'asset type', allowing you to create, rename, delete and move folders via the asset browser for better organization
Adjusted various behaviors to work with the address-driven navigation/organization of the AB
Expanded visibility options for the AB and integrated them into editor settings so they are retained
Added Search field for searching the folder structure, in addition to the existing preview tiles search
Adjusted drag-n-drop behavior of the platform code so it accepts dropping folders
Added ability to dump active PostEffects list to see what is currently running
Added ability to mark specific items in GuiTreeViewCtrl as hidden
Made reflection probe bounds boxes translucent rather than wireframe to improve editing visibility
Added expanded loose file references to LevelAsset for common companion files like decals and posteffect scrips
Added editor setting for Editor Layout Mode, allowing you to set the editor into 'Modern' layout.
Added editor settings to set default import config ruleset, and also ability to set auto-import. If both of these are set, then as long as the importing assets have no errors, they will auto-process and the user doesn't need to manually check and confirm them via the asset import window
2019-10-20 02:47:15 -05:00
AzaezelX 27d6665d21 set volumetric fog to use the standard window-resized trigger for it's update 2019-10-17 09:54:38 -05:00
AzaezelX dd1470202d Merge branch 'development' of https://github.com/GarageGames/Torque3D into PBR_ProbeArrayGLWIP
# Conflicts:
#	Engine/source/gfx/D3D11/gfxD3D11Device.cpp
#	Engine/source/lighting/lightManager.cpp
#	Templates/Full/game/levels/Empty Room.mis
#	Templates/Full/game/levels/Empty Terrain.mis
2019-05-01 23:18:31 -05:00
Areloch 15e50f58d6 Merge pull request #2313 from OTHGMars/MousePos
Switches to absolute position for mouse tracking.
2019-03-31 14:16:52 -05:00
Marc Chapman a578ef77d3 Fixes a crash that occurs on linux headless servers 2019-02-26 14:47:02 +00:00
OTHGMars 3da245134d Switches to absolute position for mouse tracking when the platform cursor is visible. 2019-02-13 14:12:12 -05:00
Areloch 2abdef7459 Collapse the ProbeManager into RenderProbeMgr to simplify the probe management/rendering behavior(as the game sim doesn't require simple access to probe data, unlike lights) 2019-01-26 02:05:18 -06:00
OTHGMars 3af77bbf15 Adds support for SDL joystick and game controllers. 2019-01-10 20:09:05 -05:00
Areloch d74a25540f Merge pull request #2282 from OTHGMars/CanvasResize
Fixes CanvasSizeChangeSignal and Canvas::onResize()  under SDL
2019-01-06 04:51:18 -06:00
Areloch 58cf310971 Merge pull request #2284 from OTHGMars/SDLMonitor
Fills in monitor functions in PlatformWindowManagerSDL
2018-12-09 15:36:15 -06:00
OTHGMars 49fa248ec4 Fills in monitor functions in PlatformWindowManagerSDL
Adds the sdl implementation for all used PlatformWindowManager monitor functions. [This unit test](https://github.com/GarageGames/Torque3D/blob/development/Engine/source/windowManager/test/windowManagerTest.cpp#L28) will now pass for the SDL platform. Here is the equivalent in TorqueScript to test the functions via the Canvas object:```//Canvas.listDisplays();
function Canvas::listDisplays(%this)
{
   %count = %this.getMonitorCount();
   echo(%count SPC "monitor(s) detected.");
   for (%i = 0; %i < %count; %i++)
   {
      echo("Monitor #" @ (%i + 1) SPC %this.getMonitorName(%i) @ ": " @ %this.getMonitorRect(%i));
   }
}```
2018-11-24 03:12:07 -05:00
OTHGMars af24739137 Adds handlers for sdl focus events. 2018-11-23 16:03:00 -05:00
OTHGMars 4c96c8cea7 Fix CanvasSizeChangeSignal and Canvas::onResize() callback for SDL Window. 2018-11-17 05:51:47 -05:00
OTHGMars 1098891565 Updates PlatformCursorController to use full set of SDL cursors.
Adds support for the SDL_SYSTEM_CURSOR_WAITARROW and SDL_SYSTEM_CURSOR_NO.
2018-04-27 21:44:04 -04: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 e023cf3a60 Merge pull request #2056 from Bloodknight/afx_merge_main
Afx merge main
2017-10-11 08:47:47 -05:00
Areloch 71d31c57fd Enables SDL's ability to drag and drop files onto the game window and have it call back into script for handling. 2017-09-23 15:43:09 -05:00
Marc Chapman 51df59092d Assorted bug fixes 2017-07-27 01:50:52 +01:00
Azaezel 60631cb146 expanded debug reporting for SDL_Init 2017-06-13 20:24:03 -05:00
Areloch edd1e0a270 Removes Direct3D9 functionality. 2017-05-28 16:51:31 -05:00
Richard Marrevee 56d9ebe8eb Update win32WindowMgr.cpp 2017-05-18 20:39:53 +02:00
Areloch ed14b6fced Removes bits of code and includes that are based on old 360, xbox and PS3 flags that are no longer needed. 2017-04-08 20:30:57 -05:00
Thomas "elfprince13" Dickerson 9fbea728d7 Merge branch 'development' of github.com:GarageGames/Torque3D 2017-03-07 20:08:17 -05:00