42 lines
689 B
C
42 lines
689 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "script/scriptcontext.h"
|
|
|
|
typedef struct {
|
|
scriptcontext_t scriptContext;
|
|
} scene_t;
|
|
|
|
extern scene_t SCENE;
|
|
|
|
/**
|
|
* Initialize the scene subsystem.
|
|
*/
|
|
errorret_t sceneInit(void);
|
|
|
|
/**
|
|
* Update the current scene.
|
|
*/
|
|
void sceneUpdate(void);
|
|
|
|
/**
|
|
* Render the current scene.
|
|
*/
|
|
void sceneRender(void);
|
|
|
|
/**
|
|
* Set the current scene by script name.
|
|
*
|
|
* @param script The script name of the scene to set.
|
|
*/
|
|
errorret_t sceneSet(const char_t *script);
|
|
|
|
/**
|
|
* Dispose of the scene subsystem.
|
|
*/
|
|
void sceneDispose(void); |