Claire's Game Engine
Full C++ Engine using OpenGL
Loading...
Searching...
No Matches
Camera Class Reference

#include <Camera.h>

Inheritance diagram for Camera:
Actor

Public Member Functions

void SetupComponents () override
 Called to set up the actor's components after initialization.
 
void Update () override
 Called every frame to update the actor and its component.
 
- Public Member Functions inherited from Actor
 Actor ()
 
virtual ~Actor ()
 
void SetScene (Scene *pScene)
 Sets the scene for this actor.
 
void AddComponent (Component *pComponent)
 Adds a component to the actor. The component can be of various types (render, collider, etc.).
 
void RemoveComponent (Component *pComponent)
 Removes a specific component from the actor.
 
void UpdateComponentsTransform ()
 Updates all components' world transforms.
 
void SetActive (bool isActive)
 Sets the actor's active state, enabling or disabling components accordingly.
 
ActorState GetState () const
 Returns the current state of the actor (Active, Paused, Dead).
 
Vector3 GetPosition () const
 Returns the position of the actor in world space.
 
virtual void Start ()
 Called once at the start of the scene, after setup.
 
virtual void Destroy ()
 Called to destroy the actor, marking it as dead.
 
virtual void OnCollide (Actor *collidedActor)
 Called when this actor collides with another actor. Override this to handle collision behavior.
 
template<typename C>
C * GetComponentOfType () const
 Gets a component of a specific type attached to this actor.
 

Additional Inherited Members

- Public Attributes inherited from Actor
TransformmTransform = nullptr
 Transform representing position, rotation, scale.
 
ScenemScene = nullptr
 Scene this actor belongs to.
 

Member Function Documentation

◆ SetupComponents()

void Camera::SetupComponents ( )
inlineoverridevirtual

Called to set up the actor's components after initialization.

Reimplemented from Actor.

◆ Update()

void Camera::Update ( )
overridevirtual

Called every frame to update the actor and its component.

Reimplemented from Actor.


The documentation for this class was generated from the following files: