]> git.lizzy.rs Git - shadowclad.git/blob - src/engine/engine.h
1fdcb01ff84352ecaaeb4e9f6ebdbe9d5e2f2a57
[shadowclad.git] / src / engine / engine.h
1 #ifndef ENGINE_ENGINE_H_
2 #define ENGINE_ENGINE_H_
3
4 #include "string.h"
5
6 typedef struct EngineConfig EngineConfig;
7
8 struct EngineConfig {
9         int windowWidth;
10         int windowHeight;
11         String windowTitle;
12         int swapInterval;
13 };
14
15 void init(EngineConfig);
16 void run(void (*updateFn) (float));
17 void terminate();
18
19 EngineConfig defaultConfig();
20
21 #endif // ENGINE_ENGINE_H_