Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
Common.h File Reference

Lightweight data-transfer structs shared across subsystems. More...

#include "Constants.h"
#include "Types.h"
+ Include dependency graph for Common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mnd::CameraData
 Per-frame camera matrices and world-space position. More...
 
struct  mnd::LightData
 World-space position and RGB colour of a single point light. More...
 

Namespaces

namespace  mnd
 

Detailed Description

Lightweight data-transfer structs shared across subsystems.

These plain structs carry per-frame camera and light state from the Scene to the RenderQueue. They are intentionally value types — no ownership, no virtual methods — so they can be cheaply copied into the render pass.

Flow:

  1. Engine::Run() queries the active Scene for the main camera and lights.
  2. The results are packed into CameraData and a vector of LightData.
  3. RenderQueue::Draw() receives them and uploads the data as uniforms to each ShaderProgram before issuing draw calls.

Definition in file Common.h.