summaryrefslogtreecommitdiff
path: root/src/core/include/engine
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-13 08:37:14 +0000
committer0scar <qgt268@alumni.ku.dk>2024-02-13 08:37:14 +0000
commite1d03dafe460e00a27975519e4d911274f13eeb5 (patch)
treef127a4379643dc29ba783c4a5733798c2b454a16 /src/core/include/engine
parentf21c8ca19954b45050bb86c381cc7c439383342c (diff)
Add delta time to update function
Diffstat (limited to 'src/core/include/engine')
-rw-r--r--src/core/include/engine/core/state.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/include/engine/core/state.h b/src/core/include/engine/core/state.h
index f407acc..ee4741e 100644
--- a/src/core/include/engine/core/state.h
+++ b/src/core/include/engine/core/state.h
@@ -13,11 +13,11 @@ typedef enum StateType {
extern const char* StateTypeStr[];
-StateType (*State_updateFunc(StateType type))(void*);
+StateType (*State_updateFunc(StateType type))(f64, void*);
void State_init(StateType type, memory* mem, void* arg);
void* State_free(StateType type, memory* mem);
-StateType State_update(StateType type, memory* mem);
+StateType State_update(StateType type, f64 dt, memory* mem);
/* Reloads shared object file associated with state */
#ifdef DAW_BUILD_HOTRELOAD