Describe a fullscreen display mode or window dimensions.
- Copyright
- (C) 2006 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
|
| | DisplayMode () |
| | default constructor
|
| |
| | DisplayMode (uint x, uint y, SizeT w, SizeT h) |
| | windowed mode constructor
|
| |
| | DisplayMode (SizeT w, SizeT h, PixelFormat::Code p) |
| | fullscreen constructor
|
| |
| | DisplayMode (uint x, uint y, SizeT w, SizeT h, PixelFormat::Code p) |
| | generic constructor
|
| |
| bool | operator== (const DisplayMode &rhs) const |
| | equality operator
|
| |
| bool | operator!= (const DisplayMode &rhs) const |
| | inequality operator
|
| |
| void | SetXPos (uint x) |
| | set x position
|
| |
| uint | GetXPos () const |
| | get x position
|
| |
| void | SetYPos (uint y) |
| | set y position
|
| |
| uint | GetYPos () const |
| | get y position
|
| |
| void | SetWidth (SizeT w) |
| | set width
|
| |
| SizeT | GetWidth () const |
| | get width
|
| |
| void | SetHeight (SizeT h) |
| | set height
|
| |
| SizeT | GetHeight () const |
| | get height
|
| |
| void | SetPixelFormat (PixelFormat::Code p) |
| | set pixel format
|
| |
| PixelFormat::Code | GetPixelFormat () const |
| | get pixel format
|
| |
| void | SetAspectRatio (float a) |
| | set aspect ratio
|
| |
| float | GetAspectRatio () const |
| | get aspect ratio
|
| |
| void | SetRefreshRate (uint refreshRate) |
| | using DirectX 11, the refresh rate exists within the display mode
|
| |
| uint | GetRefreshRate () const |
| | gives you the refresh rate
|
| |
| void | SetContentScale (float s) |
| | set content scale factor
|
| |
| float | GetContentScale () const |
| | get content scale factor
|
| |