GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::OrthographicProjection2D Struct Reference

Configuration of an orthographic projection in 2D. More...

#include <GREM/graphics_2d/Camera2D.hpp>

Public Member Functions

constexpr bool operator== (const OrthographicProjection2D &other) const =default
 Compare these options to another set of options for equality.

Public Attributes

vec2 offset {0.0f, 0.0f}
 Bottom left corner of the orthographic projection, in render target coordinates.
vec2 size {1.0f, 1.0f}
 Size of the orthographic projection, in render target coordinates.

Detailed Description

Configuration of an orthographic projection in 2D.

Member Function Documentation

◆ operator==()

bool grem::graphics::OrthographicProjection2D::operator== ( const OrthographicProjection2D & other) const
nodiscardconstexprdefault

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ offset

vec2 grem::graphics::OrthographicProjection2D::offset {0.0f, 0.0f}

Bottom left corner of the orthographic projection, in render target coordinates.

◆ size

vec2 grem::graphics::OrthographicProjection2D::size {1.0f, 1.0f}

Size of the orthographic projection, in render target coordinates.


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