Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
|
#include <resolution.h>
Public Member Functions | |
Resolution () | |
Resolution (int width, int height) | |
float | GetAspectRatio () |
String | ToString () |
Public Attributes | |
int | width |
int | height |
Stores resolution information in pixels.
blowbox::Resolution::Resolution | ( | ) |
Constructs an empty resolution (0, 0)
blowbox::Resolution::Resolution | ( | int | width, |
int | height | ||
) |
Constructs a resolution given a width & height.
[in] | width | The width of the resolution. |
[in] | height | The height of the resolution. |
float blowbox::Resolution::GetAspectRatio | ( | ) |
Calculates the aspect ratio of this resolution.
String blowbox::Resolution::ToString | ( | ) |
Converts this resolution to a printable string.
int blowbox::Resolution::height |
The height of the resolution.
int blowbox::Resolution::width |
The width of the resolution.