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

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

#include <GREM/graphics_3d/Camera3D.hpp>

Public Member Functions

constexpr bool operator== (const OrthographicProjection3D &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.
float nearZ = 0.0f
 Distance to the near plane of the projection, in view coordinates.
float farZ = 0.0f
 Distance to the far plane of the projection, in view coordinates.

Detailed Description

Configuration of an orthographic projection in 3D.

Member Function Documentation

◆ operator==()

bool grem::graphics::OrthographicProjection3D::operator== ( const OrthographicProjection3D & 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::OrthographicProjection3D::offset {0.0f, 0.0f}

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

◆ size

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

Size of the orthographic projection, in render target coordinates.

◆ nearZ

float grem::graphics::OrthographicProjection3D::nearZ = 0.0f

Distance to the near plane of the projection, in view coordinates.

If greater than or equal to farZ, the depth will be infinite.

◆ farZ

float grem::graphics::OrthographicProjection3D::farZ = 0.0f

Distance to the far plane of the projection, in view coordinates.

If less than or equal to nearZ, the depth will be infinite.


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