cmdfx 1.0.1
Lightweight game engine for your terminal
Loading...
Searching...
No Matches
CmdFX::SceneEngine Namespace Reference

Scene Engine functions. More...

Functions

void tick ()
 Ticks the Scene Engine.
int begin ()
 Begins the Scene Engine.
int end ()
 Ends the Scene Engine.

Detailed Description

Scene Engine functions.

Function Documentation

◆ begin()

int CmdFX::SceneEngine::begin ( )

Begins the Scene Engine.

This function starts the Scene Engine, enabling automatic scene management and rendering. This should be called before registering any scenes.

Returns
0 if successful, -1 if an error occurred.

◆ end()

int CmdFX::SceneEngine::end ( )

Ends the Scene Engine.

This function stops the Scene Engine and cleans up all resources. This should be called when scene management is no longer needed.

Returns
0 if successful, -1 if an error occurred.

◆ tick()

void CmdFX::SceneEngine::tick ( )

Ticks the Scene Engine.

This function ticks the Scene Engine, updating all registered scenes and redrawing them if necessary. This should be called once per frame.