![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <display_configuration.hpp>
Public Member Functions | |
| DisplayConfiguration (ComPtr< DXGIAdapter > adapter, ComPtr< DXGIOutput > output, const DXGI_MODE_DESC &display_mode) | |
| DisplayConfiguration (const DisplayConfiguration &configuration)=default | |
| DisplayConfiguration (DisplayConfiguration &&configuration) noexcept=default | |
| ~DisplayConfiguration ()=default | |
| DisplayConfiguration & | operator= (const DisplayConfiguration &configuration)=default |
| DisplayConfiguration & | operator= (DisplayConfiguration &&configuration) noexcept=default |
| DXGIAdapter * | GetAdapter () const noexcept |
| DXGIOutput * | GetOutput () const noexcept |
| U32 | GetDisplayWidth () const noexcept |
| U32 | GetDisplayHeight () const noexcept |
| const U32x2 | GetDisplayResolution () const noexcept |
| U32 | GetSSDisplayWidth () const noexcept |
| U32 | GetSSDisplayHeight () const noexcept |
| const U32x2 | GetSSDisplayResolution () const noexcept |
| U32 | GetDisplayRoundedRefreshRate () const noexcept |
| const DXGI_RATIONAL | GetDisplayRefreshRate () const noexcept |
| DXGI_FORMAT | GetDisplayFormat () const noexcept |
| const DXGI_MODE_DESC & | GetDisplayMode () const noexcept |
| void | SetDisplayMode (const DXGI_MODE_DESC &display_mode) noexcept |
| bool | UsesAA () const noexcept |
| bool | UsesMSAA () const noexcept |
| bool | UsesSSAA () const noexcept |
| AntiAliasing | GetAA () const noexcept |
| void | SetAA (AntiAliasing aa) noexcept |
| bool | IsWindowed () const noexcept |
| void | SetWindowed (bool windowed=true) noexcept |
| bool | IsFullScreen () const noexcept |
| void | SetFullScreen (bool fullscreen=true) noexcept |
| bool | IsVSynced () const noexcept |
| void | SetVSync (bool vsync=true) noexcept |
Private Attributes | |
| ComPtr< DXGIAdapter > | m_adapter |
| ComPtr< DXGIOutput > | m_output |
| DXGI_MODE_DESC | m_display_mode |
| AntiAliasing | m_aa |
| bool | m_windowed |
| bool | m_vsync |
A class of display configurations.
|
explicit |
Constructs a display configuration.
| [in] | adapter | A pointer to the adapter. |
| [in] | output | A pointer to the output. |
| [in] | display_mode | A reference to the display mode. |
|
default |
Constructs a display configuration from the given display configuration.
| [in] | configuration | A reference to a display configuration to copy. |
|
defaultnoexcept |
Constructs a display configuration by moving the given display configuration.
| [in] | configuration | A reference to a display configuration to move. |
|
default |
Destructs this display configuration.
|
noexcept |
Returns the anti-aliasing mode of this display configuration.
|
noexcept |
Returns the adapter of this display configuration.
|
noexcept |
Returns the display format of this display configuration.
|
noexcept |
Returns the display height in pixels of this display configuration.
|
noexcept |
Returns the display mode of this display configuration.
|
noexcept |
Returns the display refresh rate of this display configuration.
|
noexcept |
Returns the display resolution in pixels of this display configuration.
|
noexcept |
Returns the rounded display refresh rate of this display configuration.
|
noexcept |
Returns the display width in pixels of this display configuration.
|
noexcept |
Returns the output of this display configuration.
|
noexcept |
Returns the super-sampled display height in pixels of this display configuration.
|
noexcept |
Returns the super-sampled display resolution in pixels of this display configuration.
|
noexcept |
Returns the super-sampled display width in pixels of this display configuration.
|
noexcept |
Checks whether the application should run in full screen mode for this display configuration.
true if the application should run in full screen mode for this display configuration. false otherwise.
|
noexcept |
Checks whether V-sync should be enabled for this display configuration.
true if v-sync should be enabled for this display configuration. false otherwise.
|
noexcept |
Checks whether the application should run in windowed mode for this display configuration.
true if the application should run in windowed mode for this display configuration. false otherwise.
|
default |
Copies the given display configuration to this display configuration.
| [in] | configuration | A reference to a display configuration to copy. |
|
defaultnoexcept |
Moves the given display configuration to this display configuration.
| [in] | configuration | A reference to a display configuration to move. |
|
noexcept |
Sets the anti-aliasing mode of this display configuration to the given anti-aliasing mode.
| [in] | aa | The anti-aliasing mode. |
|
noexcept |
Sets the display mode of this display configuration to the given display mode.
| [in] | display_mode | A reference to the display mode. |
|
noexcept |
Sets the windowed/fullscreen mode of this display configuration to the given windowed/fullscreen mode.
| [in] | fullscreen | true if fullscreen mode. false otherwise. |
|
noexcept |
Sets the V-sync mode of this display configuration to the given V-sync mode.
| [in] | vsync | true if V-sync mode. false otherwise. |
|
noexcept |
Sets the windowed/fullscreen mode of this display configuration to the given windowed/fullscreen mode.
| [in] | windowed | true if windowed mode. false otherwise. |
|
noexcept |
Checks whether this display configuration uses AA.
true if this display configuration uses AA. false otherwise.
|
noexcept |
Checks whether this display configuration uses MSAA.
true if this display configuration uses MSAA. false otherwise.
|
noexcept |
Checks whether this display configuration uses SSAA.
true if this display configuration uses SSAA. false otherwise.
|
private |
The Anti-Aliasing mode of this display configuration.
|
private |
A pointer to the adapter (e.g. video card) of this display configuration.
|
private |
The display mode of this display configuration.
|
private |
A pointer to the output (e.g. screen monitor) of this display configuration.
|
private |
Flag indicating whether V-sync should be enabled for this display configuration.
|
private |
Flag indicating whether the application should run in windowed mode for this display configuration.