Nebula
|
#include <displaymode.h>
Describe a fullscreen display mode or window dimensions.
Public Member Functions | |
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 | |
Private Attributes | |
uint | xPos |
uint | yPos |
SizeT | width |
SizeT | height |
uint | refreshRate |
float | aspectRatio |
float | contentScale |
PixelFormat::Code | pixelFormat |
|
inline |
default constructor
windowed mode constructor
This constructor is suitable for windowed modes.
|
inline |
fullscreen constructor
This constructor is suitable for fullscreen modes.
|
inline |
generic constructor
|
inline |
get aspect ratio
|
inline |
get content scale factor
|
inline |
get height
|
inline |
get pixel format
|
inline |
gives you the refresh rate
|
inline |
get width
|
inline |
get x position
|
inline |
get y position
|
inline |
inequality operator
|
inline |
equality operator
|
inline |
set aspect ratio
|
inline |
set content scale factor
|
inline |
set height
|
inline |
set pixel format
|
inline |
using DirectX 11, the refresh rate exists within the display mode
|
inline |
set width
|
inline |
set x position
|
inline |
set y position
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |