91 aspectRatio(4.0f / 3.0f),
109 aspectRatio(float(w) / float(h)),
127 aspectRatio(float(w) / float(h)),
144 aspectRatio(float(w) / float(h)),
158 (this->yPos == rhs.
yPos) &&
159 (this->width == rhs.
width) &&
160 (this->height == rhs.
height) &&
173 return !(*
this == rhs);
Describe a fullscreen display mode or window dimensions.
Definition displaymode.h:19
float GetContentScale() const
get content scale factor
Definition displaymode.h:297
void SetAspectRatio(float a)
set aspect ratio
Definition displaymode.h:270
void SetPixelFormat(PixelFormat::Code p)
set pixel format
Definition displaymode.h:252
SizeT width
Definition displaymode.h:72
uint GetYPos() const
get y position
Definition displaymode.h:207
uint GetXPos() const
get x position
Definition displaymode.h:189
SizeT GetHeight() const
get height
Definition displaymode.h:243
void SetContentScale(float s)
set content scale factor
Definition displaymode.h:288
float GetAspectRatio() const
get aspect ratio
Definition displaymode.h:279
DisplayMode()
default constructor
Definition displaymode.h:85
void SetHeight(SizeT h)
set height
Definition displaymode.h:234
SizeT height
Definition displaymode.h:73
bool operator==(const DisplayMode &rhs) const
equality operator
Definition displaymode.h:155
float aspectRatio
Definition displaymode.h:75
SizeT GetWidth() const
get width
Definition displaymode.h:225
uint yPos
Definition displaymode.h:71
void SetXPos(uint x)
set x position
Definition displaymode.h:180
PixelFormat::Code GetPixelFormat() const
get pixel format
Definition displaymode.h:261
void SetRefreshRate(uint refreshRate)
using DirectX 11, the refresh rate exists within the display mode
Definition displaymode.h:306
uint xPos
Definition displaymode.h:70
PixelFormat::Code pixelFormat
Definition displaymode.h:77
uint refreshRate
Definition displaymode.h:74
bool operator!=(const DisplayMode &rhs) const
inequality operator
Definition displaymode.h:171
void SetYPos(uint y)
set y position
Definition displaymode.h:198
float contentScale
Definition displaymode.h:76
void SetWidth(SizeT w)
set width
Definition displaymode.h:216
uint GetRefreshRate() const
gives you the refresh rate
Definition displaymode.h:315
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
int SizeT
Definition types.h:49
unsigned int uint
Definition types.h:31