Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::CameraComponent Struct Reference

Component that holds camera data. More...

#include <Components.h>

Public Member Functions

 CameraComponent ()=default
 
 CameraComponent (const CameraComponent &)=default
 

Public Attributes

SceneCamera Camera
 The scene camera.
 
bool FixedAspectRatio = false
 Whether the aspect ratio is fixed.
 
bool Primary = true
 Whether this camera is the primary camera.
 

Detailed Description

Component that holds camera data.

Constructor & Destructor Documentation

◆ CameraComponent() [1/2]

Muto::CameraComponent::CameraComponent ( )
default

◆ CameraComponent() [2/2]

Muto::CameraComponent::CameraComponent ( const CameraComponent &  )
default

Member Data Documentation

◆ Camera

SceneCamera Muto::CameraComponent::Camera

The scene camera.

◆ FixedAspectRatio

bool Muto::CameraComponent::FixedAspectRatio = false

Whether the aspect ratio is fixed.

◆ Primary

bool Muto::CameraComponent::Primary = true

Whether this camera is the primary camera.

If multiple cameras exist, the primary camera for rendering will be the first one found marked as primary.


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