libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::CameraOrthographicOptions Struct Reference

Configuration options for a Camera with an orthographic projection. More...

#include <donut/graphics/Camera.hpp>

Public Attributes

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

Detailed Description

Configuration options for a Camera with an orthographic projection.

Member Data Documentation

◆ offset

vec2 donut::graphics::CameraOrthographicOptions::offset {0.0f, 0.0f}

Bottom left corner of the orthographic projection, in framebuffer coordinates.

◆ size

vec2 donut::graphics::CameraOrthographicOptions::size {1.0f, 1.0f}

Size of the orthographic projection, in framebuffer coordinates.


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