diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/daw/state.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/daw/state.h b/src/include/daw/state.h index f98d5ff..72fe2f0 100644 --- a/src/include/daw/state.h +++ b/src/include/daw/state.h @@ -6,6 +6,7 @@ extern "C" { #endif #include <daw/memory.h> +#include <daw/window.h> typedef enum StateType { STATE_null, @@ -17,11 +18,12 @@ typedef enum StateType { extern const char* StateTypeStr[]; -StateType (*State_updateFunc(StateType type))(f64, void*); +StateType (*State_updateFunc(StateType type))(Window *restrict, void*, f64); -void State_init(StateType type, memory* mem, void* arg); +// "mem" is userdefined memory representing the state of their statemachine +void State_init(StateType type, Window *restrict w, memory* mem, void* arg); void* State_free(StateType type, memory* mem); -StateType State_update(StateType type, f64 dt, memory* mem); +StateType State_update(StateType type, Window *restrict w, memory* mem, f64 dt); /* Reloads shared object file associated with state */ #ifdef DAW_BUILD_HOTRELOAD |
