CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::CameraSettings Struct Reference

A structure that contains settins for a camera. More...

#include <CeresEngine/Scene/Camera.hpp>

Public Attributes

double focalLength
 The Focal Length controls the amount of zoom, i.e.
 
double orthographicScale
 This controls the apparent size of objects projected on the image.
 
Extent2 sensorSize
 This setting is an alternative way to control the field of view, as opposed to modifying the focal length.
 
Offset2 lensShift
 Allows for the adjustment of vanishing points.
 
double nearPlane = 0.1
 The closest point relative to the camera that drawing will occur.
 
double farPlane = std::numeric_limits<double>::infinity()
 The furthest point relative to the camera that drawing will occur.
 

Detailed Description

A structure that contains settins for a camera.

Member Data Documentation

◆ farPlane

double CeresEngine::CameraSettings::farPlane = std::numeric_limits<double>::infinity()

The furthest point relative to the camera that drawing will occur.

◆ focalLength

double CeresEngine::CameraSettings::focalLength

The Focal Length controls the amount of zoom, i.e.

the amount of the scene which is visible all at once. Longer focal lengths result in a smaller FOV (more zoom), while short focal lengths allow you to see more of the scene at once (larger FOV, less zoom).

◆ lensShift

Offset2 CeresEngine::CameraSettings::lensShift

Allows for the adjustment of vanishing points.

Vanishing points refer to the positions to which parallel lines converge.

◆ nearPlane

double CeresEngine::CameraSettings::nearPlane = 0.1

The closest point relative to the camera that drawing will occur.

◆ orthographicScale

double CeresEngine::CameraSettings::orthographicScale

This controls the apparent size of objects projected on the image.

Note that this is effectively the only setting which applies to orthographic perspective. Since parallel lines do not converge in orthographic mode (no vanishing points), the lens shift settings are equivalent to translating the camera in the 3D Viewport.

◆ sensorSize

Extent2 CeresEngine::CameraSettings::sensorSize

This setting is an alternative way to control the field of view, as opposed to modifying the focal length.


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