prototype IR and parser
[henge/webcc.git] / src / core / state.c
1 /*!@file
2 \brief main state machine for the engine
3 \details initializes necessary subsystems before invoking the preloader,
4 which loads initial game data, before finally invoking the
5 main loop gameloop(void)
6 \author Mihrtec
7 \date 2016
8 ------------------------------------------------------------------------------*/
9 #ifdef __EMSCRIPTEN__
10 #include <SDL_ttf.h>
11 #include <emscripten/emscripten.h>
12 #else
13 #include <SDL2/SDL_ttf.h>
14 #endif
15 #include <SDL2/SDL.h>
16 #include <SDL2/SDL_image.h>
17
18 /* Exposed functions */
19 int state_init(void);
20 void state_tick(uint32_t);
21 const char* state_get_error(void);
22 void state_quit(void);
23 void state_handle_event(SDL_Event *);
24
25 int
26 state_init()
27 { return 0;
28 }
29
30 void
31 state_tick(uint32_t delta_ticks)
32 {
33 }
34
35 const char*
36 state_get_error()
37 { static char err[5] = "Ass!";
38 return (const char *)&err;
39 }
40
41 void
42 state_quit()
43 {
44 }
45
46 void
47 state_handle_event(SDL_Event *event)
48 {
49 }