ASGE  3.2.0
Simple Game Framework in GL
ASGE::Resolution Class Reference
Collaboration diagram for ASGE::Resolution:
[legend]

Public Types

enum class  Policy : uint8_t {
  NONE = 0 , MAINTAIN = 1 , CENTER = 2 , SCALE = 3 ,
  ZOOM = 4
}
 

Public Member Functions

float getBaseAspectRatio ()
 
float getWindowAspectRatio ()
 
float getDesktopAspectRatio ()
 

Public Attributes

std::array< int32_t, 2 > base { 1920, 1080 }
 
std::array< int32_t, 2 > window { 1920, 1080 }
 
std::array< int32_t, 3 > desktop { 0, 0, 0 }
 
ASGE::Viewport viewport { 0, 0, 1920, 1080 }
 
Camera::CameraView view {0, 0, 1920, 1080}
 

Detailed Description

Definition at line 22 of file Resolution.hpp.

Member Enumeration Documentation

◆ Policy

enum ASGE::Resolution::Policy : uint8_t
strong
Enumerator
NONE 

Does not apply any offset or scaling to the game

MAINTAIN 

Maintains the aspect ratio and centers where possible

CENTER 

Centers but does not scale the viewport

SCALE 

Fills the screen which may lead to stretching or distortion

ZOOM 

Maintains the aspect ratio but fills the screens

Definition at line 25 of file Resolution.hpp.


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