build system 3
[henge/webcc.git] / src / henge / engine.h
1 /*!@file
2 \brief Engine config
3 \details Contains various global compile-time defines such as rendering FPS
4 which loads initial game data, before finally invoking the
5 main loop gameloop(void)
6 \author Mihrtec
7 \date 2016
8 ------------------------------------------------------------------------------*/
9 #ifndef _ENGINE_H_
10 #define _ENGINE_H_
11
12 #ifdef __EMSCRIPTEN__
13 #define NON_BLOCKING_LOOPS
14 #endif
15
16 /* debug level */
17 #ifndef DEBUG
18 #define DEBUG 1
19 #endif
20
21 /* Exit Codes */
22 #define EXIT_GRACEFUL 1
23 #define EXIT_DEBUG 2
24 #define EXIT_PANIC 3
25
26
27 /* Target frames per second */
28 #ifndef TARGET_FPS
29 #define TARGET_FPS 60
30 #endif
31
32 /* Target milliseconds per frame */
33 #define TARGET_DT (1000 / TARGET_FPS)
34
35 #endif //_ENGINE_H_