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

Configuration options for a Camera with a perspective projection. More...

#include <donut/graphics/Camera.hpp>

Public Attributes

float verticalFieldOfView = 1.28700221758656877361f
 Vertical field of view of the projection, in radians. More...
 
float aspectRatio = 1.0f
 Aspect ratio of the projection, X/Y. More...
 
float nearZ = 0.01f
 Distance to the near plane of the projection, in view coordinates. More...
 
float farZ = 1000.0f
 Distance to the far plane of the projection, in view coordinates. More...
 

Detailed Description

Configuration options for a Camera with a perspective projection.

Member Data Documentation

◆ verticalFieldOfView

float donut::graphics::CameraPerspectiveOptions::verticalFieldOfView = 1.28700221758656877361f

Vertical field of view of the projection, in radians.

◆ aspectRatio

float donut::graphics::CameraPerspectiveOptions::aspectRatio = 1.0f

Aspect ratio of the projection, X/Y.

◆ nearZ

float donut::graphics::CameraPerspectiveOptions::nearZ = 0.01f

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

◆ farZ

float donut::graphics::CameraPerspectiveOptions::farZ = 1000.0f

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


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