]> git.lizzy.rs Git - shadowclad.git/blob - src/engine/engine.h
Add copyright and license notices in source code
[shadowclad.git] / src / engine / engine.h
1 /**
2  * Copyright 2018-2020 Iwo 'Outfrost' Bujkiewicz
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8
9 #ifndef ENGINE_ENGINE_H_
10 #define ENGINE_ENGINE_H_
11
12 #include "string.h"
13
14 typedef struct EngineConfig EngineConfig;
15
16 struct EngineConfig {
17         int windowWidth;
18         int windowHeight;
19         String windowTitle;
20         int swapInterval;
21 };
22
23 void init(EngineConfig);
24 void run(void (*updateFn) (float));
25 void terminate();
26
27 EngineConfig defaultConfig();
28
29 #endif // ENGINE_ENGINE_H_