scerne stuff

This commit is contained in:
2025-10-01 19:21:20 -05:00
parent 83243ba32f
commit 4b04fc65ad
19 changed files with 150 additions and 76 deletions

24
src/scene/scene.h Normal file
View File

@@ -0,0 +1,24 @@
/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "dusk.h"
#include "error/error.h"
#define SCENE_FLAG_ACTIVE (1 << 0)
typedef struct {
errorret_t (*init)(void);
void (*update)(void);
void (*render)(void);
void (*dispose)(void);
void (*active)(void);
void (*sleep)(void);
uint8_t flags;
} scene_t;