sculpto
Public Member Functions | Public Attributes | List of all members
scl::camera_component Struct Reference

#include <camera_component.h>

Public Member Functions

 camera_component ()=default
 
 camera_component (const camera_component &Other)=default
 
 camera_component (const camera &Camera, bool IsPrimary=false)
 
 ~camera_component ()=default
 

Public Attributes

camera Camera { camera_projection_type::PERSPECTIVE }
 
bool IsPrimary { false }
 

Detailed Description

Application scene system object camera component class.

Definition at line 16 of file camera_component.h.

Constructor & Destructor Documentation

◆ camera_component() [1/3]

scl::camera_component::camera_component ( )
default

◆ camera_component() [2/3]

scl::camera_component::camera_component ( const camera_component Other)
default

◆ camera_component() [3/3]

scl::camera_component::camera_component ( const camera Camera,
bool  IsPrimary = false 
)
inline

Definition at line 28 of file camera_component.h.

◆ ~camera_component()

scl::camera_component::~camera_component ( )
default

Member Data Documentation

◆ Camera

camera scl::camera_component::Camera { camera_projection_type::PERSPECTIVE }

Camera component actual camera object.

Definition at line 19 of file camera_component.h.

◆ IsPrimary

bool scl::camera_component::IsPrimary { false }

Flag, showing wheather camera is primary on scene. If true scene is rendered to frame buffers of this scene. If multiple cameras set as primary firest (in order of adding to scene) is used for render.

Definition at line 24 of file camera_component.h.


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