PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
PixelBullet::RenderArea Class Reference

Public Member Functions

 RenderArea (const glm::uvec2 &extent={}, const glm::ivec2 &offset={})
 
bool operator== (const RenderArea &rhs) const
 
bool operator!= (const RenderArea &rhs) const
 
const glm::uvec2 & GetExtent () const
 
void SetExtent (const glm::uvec2 &extent)
 
const glm::ivec2 & GetOffset () const
 
void SetOffset (const glm::ivec2 &offset)
 
float GetAspectRatio () const
 
void SetAspectRatio (float aspectRatio)
 

Member Function Documentation

◆ GetAspectRatio()

float PixelBullet::RenderArea::GetAspectRatio ( ) const
inline

Gets the aspect ratio between the render stage's width and height.

Returns
The aspect ratio.

The documentation for this class was generated from the following file: