Engine
Raylib based game framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Scene Class Referenceabstract

Base class for all scenes. More...

#include <SceneManager.h>

Public Member Functions

virtual void Update (const float deltaT)=0
 Updates the scene.
 
virtual void Draw ()=0
 Renders the scene.
 
virtual void OnEnter ()=0
 Called by the engine when a scene is entered.
 
virtual void OnExit ()=0
 Called by the engine when a scene is left.
 

Detailed Description

Base class for all scenes.

All scenes must derive from this class, and implement Update, Draw, OnEnter and OnExit.

Member Function Documentation

◆ Draw()

virtual void Scene::Draw ( )
pure virtual

Renders the scene.

Called after systems

◆ Update()

virtual void Scene::Update ( const float  deltaT)
pure virtual

Updates the scene.

Called after systems

Parameters
deltaTDuration of previous frame

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