![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
Public Member Functions | |
Impl (DXGI_FORMAT pixel_format=DXGI_FORMAT_R8G8B8A8_UNORM) | |
Impl (ComPtr< DXGIAdapter > adapter, ComPtr< DXGIOutput > output, DXGI_FORMAT pixel_format=DXGI_FORMAT_R8G8B8A8_UNORM) | |
Impl (const Impl &configurator)=delete | |
Impl (Impl &&configurator) noexcept | |
~Impl () | |
Impl & | operator= (const Impl &configurator)=delete |
Impl & | operator= (Impl &&configurator)=delete |
HRESULT | Configure () const |
const DisplayConfiguration * | GetDisplayConfiguration () const noexcept |
Private Member Functions | |
void | InitializeAdapterAndOutput () |
void | InitializeDisplayModes () |
INT_PTR | DisplayDialogProc (HWND dialog, UINT message, [[maybe_unused]] WPARAM wParam, [[maybe_unused]] LPARAM lParam) |
Static Private Member Functions | |
static INT_PTR CALLBACK | DisplayDialogProcDelegate (HWND dialog, UINT message, WPARAM wParam, LPARAM lParam) |
Private Attributes | |
DXGI_FORMAT | m_pixel_format |
ComPtr< DXGIAdapter > | m_adapter |
ComPtr< DXGIOutput > | m_output |
UniquePtr< DisplayConfiguration > | m_display_configuration |
UniquePtr< VariableScript > | m_script |
std::vector< DXGI_MODE_DESC > | m_display_modes |
Static Private Attributes | |
static constexpr const_wzstring | s_display_settings_fname = L"./DisplaySettings.var" |
static constexpr const_zstring | s_display_variable_aa = "anti-aliasing" |
static constexpr const_zstring | s_display_variable_refresh_rate = "refresh" |
static constexpr const_zstring | s_display_variable_resolution = "resolution" |
static constexpr const_zstring | s_display_variable_vsync = "vsync" |
static constexpr const_zstring | s_display_variable_windowed = "windowed" |
A class of display configurators.
|
explicit |
Constructs a display configurator.
[in] | pixel_format | The pixel format. |
|
explicit |
Constructs a display configurator.
[in] | adapter | A pointer to the adapter. |
[in] | output | A pointer to the output. |
[in] | pixel_format | The pixel format. |
|
delete |
Constructs a display configurator from the given display configurator.
[in] | configurator | A reference to a display configurator to copy. |
|
defaultnoexcept |
Constructs a display configurator by moving the given display configurator.
[in] | configurator | A reference to a display configurator to move. |
|
default |
Destructs this display configurator.
HRESULT mage::rendering::DisplayConfigurator::Impl::Configure | ( | ) | const |
Configurs the display by enumerating the available display modes and options associated with the adapter output of the physical adapter with the most dedicated video memory.
|
private |
Engine-defined callback function used with the CreateDialog for display configuration.
[in] | dialog | A handle to the dialog box. |
[in] | message | The message. |
[in] | wParam | Additional message-specific information. |
[in] | lParam | Additional message-specific information. |
true
if message is processed. false
otherwise.
|
staticprivate |
Engine-defined callback function used with the CreateDialog for display configuration.
[in] | dialog | A handle to the dialog box. |
[in] | message | The message. |
[in] | wParam | Additional message-specific information. |
[in] | lParam | Additional message-specific information. |
true
if message is processed. false
otherwise.
|
noexcept |
Returns the display configuration of this display configurator.
|
private |
Initializes the adapter and the output this display configurator.
Exception | Failed to initialize the adapter and the output of this display configurator. |
|
private |
Initializes the display modes of this display configurator.
Exception | Failed to initialize the display modes of this display configurator. |
Copies the given display configurator to this display configurator.
[in] | configurator | A reference to a display configurator to copy. |
Moves the given display configurator to this display configurator.
[in] | configurator | A reference to a display configurator to move. |
|
private |
A pointer to the adapter (e.g. video card) of this display configurator.
|
private |
A pointer to the display configuration of this display configurator.
|
private |
The enumerated display modes of this display configurator.
|
private |
A pointer to the output (e.g. screen monitor) of this display configurator.
|
private |
The supported pixel format of this display configurator.
|
private |
A pointer to the script which stores the display configuration of this display configurator.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |