Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
CameraSystem Class Reference

System that processes camera entities, updating their orientation, movement, aspect ratio, and submitting camera matrices to the renderer. More...

#include <CameraSystem.hpp>

Inheritance diagram for CameraSystem:
System

Public Member Functions

 CameraSystem (Registry &reg, VulkanRenderer &renderer, EditorModeState &editorMode)
 Construct a new Camera System object.
void update (float dt) override
 Updates the camera's rotation, movement, aspect ratio, and view-projection matrices.
Public Member Functions inherited from System
virtual ~System ()=default
 Virtual destructor.
void addEntity (Entity e)
 Adds an entity to the system tracking list.
void removeEntity (Entity e)
 Removes an entity from system tracking.

Private Attributes

Registry & registry
 Reference to the entity registry.
VulkanRenderer & renderer
 Reference to the renderer.
EditorModeState & editorMode
 Reference to the editor mode state.

Additional Inherited Members

Protected Attributes inherited from System
std::vector< Entity > entities
 List of entities tracked by this system.

Detailed Description

System that processes camera entities, updating their orientation, movement, aspect ratio, and submitting camera matrices to the renderer.

Constructor & Destructor Documentation

◆ CameraSystem()

CameraSystem::CameraSystem ( Registry & reg,
VulkanRenderer & renderer,
EditorModeState & editorMode )
inline

Construct a new Camera System object.

Parameters
regReference to the ECS Registry.
rendererReference to the Vulkan Renderer.
editorModeReference to the Editor Mode State.

Member Function Documentation

◆ update()

void CameraSystem::update ( float dt)
inlineoverridevirtual

Updates the camera's rotation, movement, aspect ratio, and view-projection matrices.

Parameters
dtDelta time in seconds.

Implements System.

Member Data Documentation

◆ editorMode

EditorModeState& CameraSystem::editorMode
private

Reference to the editor mode state.

◆ registry

Registry& CameraSystem::registry
private

Reference to the entity registry.

◆ renderer

VulkanRenderer& CameraSystem::renderer
private

Reference to the renderer.


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