rigSystems 0.1.1
RigKit pack API - rigSystems
Loading...
Searching...
No Matches
SCanvas.h File Reference

Canvas systems: advance the CCanvas clock, then present shapes into its FBO. More...

#include "ecs/MEcs.h"
Include dependency graph for SCanvas.h:

Functions

void rigkit::ecs::SCanvasUpdate (MEcs &ecs, float deltaTime)
 Advance CCanvas clock fields (time / frameCount).
void rigkit::ecs::SCanvasRender (MEcs &ecs, MCanvas *canvasManager)
 Present ECS shapes into the active Canvas FBO (if any).

Detailed Description

Canvas systems: advance the CCanvas clock, then present shapes into its FBO.

The Update half only moves numbers; only SCanvasRender binds the host Canvas.

Function Documentation

◆ SCanvasRender()

void rigkit::ecs::SCanvasRender ( MEcs & ecs,
MCanvas * canvasManager )

Present ECS shapes into the active Canvas FBO (if any).

Safe during Draw: calls SShapeRendering directly - does not re-enter renderSystems().

◆ SCanvasUpdate()

void rigkit::ecs::SCanvasUpdate ( MEcs & ecs,
float deltaTime )

Advance CCanvas clock fields (time / frameCount).

Does not touch the host Canvas / FBO - that path is Draw-only via SCanvasRender.