mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
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)
This commit is contained in:
parent
d76c73c252
commit
26ef40950b
12 changed files with 559 additions and 152 deletions
|
|
@ -90,6 +90,23 @@ public:
|
|||
// Get the requested monitor's rectangular region.
|
||||
virtual RectI getMonitorRect(U32 index) { return RectI(0, 0, 0, 0); }
|
||||
|
||||
// Get the requested monitor's rectangular region.
|
||||
// Use this function to get the usable desktop area represented by a display,
|
||||
// with the primary display located at 0,0.
|
||||
virtual RectI getMonitorUsableRect(U32 index) { return RectI(0, 0, 0, 0); }
|
||||
|
||||
// Retrieve the number of display modes available on a monitor. Provides a default
|
||||
// count of 0 for systems that don't provide information on connected monitors.
|
||||
virtual U32 getMonitorModeCount(U32 monitorIndex) { return 0; }
|
||||
|
||||
// Gets a display mode for a specific monitor. Provides a default of "" for platorms
|
||||
// that do not provide information on connected monitors.
|
||||
virtual const String getMonitorMode(U32 monitorIndex, U32 modeIndex) { return String::EmptyString; }
|
||||
|
||||
// Gets the current desktop display mode for a specific monitor. Provides a default
|
||||
// of "" for platorms that do not provide information on connected monitors.
|
||||
virtual const String getMonitorDesktopMode(U32 monitorIndex) { return String::EmptyString; }
|
||||
|
||||
/// Populate a vector with all monitors and their extents in window space.
|
||||
virtual void getMonitorRegions(Vector<RectI> ®ions) = 0;
|
||||
|
||||
|
|
@ -152,4 +169,4 @@ private:
|
|||
/// need to get the window manager from somewhere else.
|
||||
PlatformWindowManager *CreatePlatformWindowManager();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue