Struct Camera¶
-
struct Camera¶
Public Types
-
using Projection = P64::Camera::Projection¶
Public Functions
-
inline void setPerspective(float fov)¶
Switches the camera over to a perspective projection.
- Parameters:
fov – vertical fov in radians
-
inline void setOrthographic(float orthoSize)¶
Switches the camera over to an orthographic projection.
- Parameters:
orthoSize – vertical half-size of the view volume in world units
-
inline void setProjection(Projection projection)¶
Switches between perspective and orthographic projection, keeping the settings (fov / ortho-size) of both.
-
inline Projection getProjection() const¶
Public Static Functions
Public Static Attributes
-
static constexpr uint32_t ID = 3¶
-
struct InitData¶
-
using Projection = P64::Camera::Projection¶