scene crap

This commit is contained in:
2025-10-06 23:16:19 -05:00
parent cf2e6bf382
commit b00ca3d48c
12 changed files with 163 additions and 36 deletions

View File

@@ -6,6 +6,7 @@
# Sources
target_sources(${DUSK_TARGET_NAME}
PRIVATE
ui.c
uitext.c
uifps.c
uiframe.c

26
src/ui/ui.c Normal file
View File

@@ -0,0 +1,26 @@
/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "ui.h"
ui_t UI;
void uiInit(void) {
// Initialize UI components here
}
void uiUpdate(void) {
// Update UI state here
}
void uiRender(void) {
// Render UI elements here
}
void uiDispose(void) {
// Clean up UI resources here
}

35
src/ui/ui.h Normal file
View File

@@ -0,0 +1,35 @@
/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "dusk.h"
typedef struct {
int32_t nothing;
} ui_t;
extern ui_t UI;
/**
* Initializes the UI system, loading necessary resources.
*/
void uiInit(void);
/**
* Updates the UI state, handling user interactions and animations.
*/
void uiUpdate(void);
/**
* Renders the UI elements to the screen.
*/
void uiRender(void);
/**
* Cleans up and frees all UI resources.
*/
void uiDispose(void);