Drag[en]gine Game Engine
1.21
|
Interface for Operating System classes. More...
#include <deOS.h>
Public Member Functions | |
Constructors and Destructors | |
deOS () | |
Create a new operating system object. More... | |
virtual | ~deOS () |
Clean up the operating system object. More... | |
Management | |
deEngine * | GetEngine () const |
Engine object or NULL if not existing. More... | |
void | SetEngine (deEngine *engine) |
Set engine object or NULL if not existing. More... | |
virtual decString | GetPathEngine ()=0 |
Engine path. More... | |
virtual decString | GetPathShare ()=0 |
Share path. More... | |
virtual decString | GetPathSystemConfig ()=0 |
System configuration path. More... | |
virtual decString | GetPathUserConfig ()=0 |
User configuration path. More... | |
virtual decString | GetPathUserCache ()=0 |
User cache path. More... | |
virtual decString | GetPathUserCapture ()=0 |
User capture path. More... | |
virtual void | ProcessEventLoop (bool sendToInputModule)=0 |
Process all events in the application event queue. More... | |
bool | GetAppActive () const |
Application is active. More... | |
virtual void | SetAppActive (bool active) |
Set if application is active. More... | |
virtual decString | GetUserLocaleLanguage ()=0 |
Current user locale language (ISO 639 language code) in lower case. More... | |
virtual decString | GetUserLocaleTerritory ()=0 |
Current user locale territory (ISO 3166 country code) in lower case or empty string. More... | |
Display information. | |
virtual int | GetDisplayCount ()=0 |
Number of displays. More... | |
virtual decPoint | GetDisplayCurrentResolution (int display)=0 |
Current resolution of display. More... | |
virtual int | GetDisplayCurrentRefreshRate (int display)=0 |
Current refresh rate of display. More... | |
virtual int | GetDisplayResolutionCount (int display)=0 |
Number of resolutions supported on display. More... | |
virtual decPoint | GetDisplayResolution (int display, int resolution)=0 |
Resolution by index for display. More... | |
virtual int | GetDisplayCurrentScaleFactor (int display)=0 |
Current global scaling factor for display. More... | |
Casting | |
virtual deOSUnix * | CastToOSUnix () |
Cast to deOSUnix. More... | |
virtual deOSConsole * | CastToOSConsole () |
Cast to deOSConsole. More... | |
virtual deOSWindows * | CastToOSWindows () |
Cast to deOSWindows. More... | |
virtual deOSBeOS * | CastToOSBeOS () |
Cast to deOSBeOS. More... | |
virtual deOSAndroid * | CastToOSAndroid () |
Cast to deOSAndroid. More... | |
virtual deOSMacOS * | CastToOSMacOS () |
Cast to deOSMacOS. More... | |
Interface for Operating System classes.
deOS::deOS | ( | ) |
Create a new operating system object.
|
virtual |
Clean up the operating system object.
|
virtual |
Cast to deOSAndroid.
deeInvalidParam | Not an instance of deOSAndroid. |
|
virtual |
Cast to deOSBeOS.
deeInvalidParam | Not an instance of deOSBeOS. |
|
virtual |
Cast to deOSConsole.
deeInvalidParam | Not an instance of deOSConsole. |
Reimplemented in deOSConsole.
|
virtual |
Cast to deOSMacOS.
deeInvalidParam | Not an instance of deOSMacOS. |
|
virtual |
Cast to deOSUnix.
deeInvalidParam | Not an instance of deOSUnix. |
|
virtual |
Cast to deOSWindows.
deeInvalidParam | Not an instance of deOSWindows. |
|
inline |
Application is active.
|
pure virtual |
Number of displays.
Implemented in deOSConsole.
|
pure virtual |
Current refresh rate of display.
display | Index of display to get current refresh rate for. |
deeInvalidParam | display is less than 0 or equal to or greater than GetDisplayCount(). |
Implemented in deOSConsole.
|
pure virtual |
Current resolution of display.
display | Index of display to get current resolution for. |
deeInvalidParam | display is less than 0 or equal to or greater than GetDisplayCount(). |
Implemented in deOSConsole.
|
pure virtual |
Current global scaling factor for display.
display | Index of display to get scaling factor for. |
deeInvalidParam | display is less than 0 or equal to or greater than GetDisplayCount(). |
Value of 100 represents scaling of 100%. Value step size is 25.
Implemented in deOSConsole.
|
pure virtual |
Resolution by index for display.
display | Index of display to get current resolution for. |
resolution | Index of resolution on display. |
deeInvalidParam | display is less than 0 or equal to or greater than GetDisplayCount(). |
deeInvalidParam | resolution is less than 0 or equal to or greater than GetDisplayResolutionCount(display). |
Implemented in deOSConsole.
|
pure virtual |
Number of resolutions supported on display.
display | Index of display to get current resolution for. |
deeInvalidParam | display is less than 0 or equal to or greater than GetDisplayCount(). |
Implemented in deOSConsole.
|
inline |
Engine object or NULL if not existing.
|
pure virtual |
Engine path.
Implemented in deOSConsole.
|
pure virtual |
Share path.
Implemented in deOSConsole.
|
pure virtual |
System configuration path.
Implemented in deOSConsole.
|
pure virtual |
User cache path.
Implemented in deOSConsole.
|
pure virtual |
User capture path.
Implemented in deOSConsole.
|
pure virtual |
User configuration path.
Implemented in deOSConsole.
|
pure virtual |
Current user locale language (ISO 639 language code) in lower case.
Implemented in deOSConsole.
|
pure virtual |
Current user locale territory (ISO 3166 country code) in lower case or empty string.
Implemented in deOSConsole.
|
pure virtual |
Process all events in the application event queue.
Certain events are directly processed. If sendToInputModule is true all events are also send to the active input module. Set sendToInputModule to false if you want to clear the event queue after a lengthy operation to avoid an event flood resulting in strange initial inputs.
Implemented in deOSConsole.
|
virtual |
Set if application is active.
Sends notifications to affected engine modules if required.
void deOS::SetEngine | ( | deEngine * | engine | ) |
Set engine object or NULL if not existing.