Blowbox 2017
A 3D Game Engine by Riko Ophorst using DirectX 12
Public Member Functions | Public Attributes | List of all members
blowbox::Resolution Struct Reference

#include <resolution.h>

Public Member Functions

 Resolution ()
 
 Resolution (int width, int height)
 
float GetAspectRatio ()
 
String ToString ()
 

Public Attributes

int width
 
int height
 

Detailed Description

Stores resolution information in pixels.

Author
Riko Ophorst

Constructor & Destructor Documentation

blowbox::Resolution::Resolution ( )

Constructs an empty resolution (0, 0)

Author
Riko Ophorst
blowbox::Resolution::Resolution ( int  width,
int  height 
)

Constructs a resolution given a width & height.

Author
Riko Ophorst
Parameters
[in]widthThe width of the resolution.
[in]heightThe height of the resolution.

Member Function Documentation

float blowbox::Resolution::GetAspectRatio ( )

Calculates the aspect ratio of this resolution.

Author
Riko Ophorst
String blowbox::Resolution::ToString ( )

Converts this resolution to a printable string.

Member Data Documentation

int blowbox::Resolution::height

The height of the resolution.

int blowbox::Resolution::width

The width of the resolution.


The documentation for this struct was generated from the following files: