36 lines
626 B
C
36 lines
626 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "scene.h"
|
|
|
|
typedef struct {
|
|
int nothing;
|
|
} scenemanager_t;
|
|
|
|
extern scenemanager_t SCENE_MANAGER;
|
|
extern scene_t SCENE_MANAGER_SCENES[SCENE_TYPE_COUNT];
|
|
|
|
/**
|
|
* Initializes the scene manager and the initial scene.
|
|
*/
|
|
errorret_t sceneManagerInit(void);
|
|
|
|
/**
|
|
* Updates all active scenes.
|
|
*/
|
|
void sceneManagerUpdate(void);
|
|
|
|
/**
|
|
* Renders all visible scenes.
|
|
*/
|
|
void sceneManagerRender(void);
|
|
|
|
/**
|
|
* Disposes of all scenes.
|
|
*/
|
|
void sceneManagerDispose(void); |