1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#include <gfx/app.h>
#include <assert.h>
const int WIDTH = 960;
const int HEIGHT = 600;
const int MAX_FPS = 60;
const char* TITLE = "iso3d";
typedef struct GfxAppState {
int unused;
} GfxAppState;
bool Init(GfxApp* app, GfxAppState* state, int argc, const char** argv) {
assert(app);
assert(state);
(void)argc;
(void)argv;
return true;
}
void Shutdown(GfxApp* app, GfxAppState* state) {
assert(app);
assert(state);
}
void Update(GfxApp* app, GfxAppState* state, double t, double dt) {
assert(app);
assert(state);
(void)t;
(void)dt;
}
void Render(const GfxApp* app, GfxAppState* state) {
assert(app);
assert(state);
}
void Resize(GfxApp* app, GfxAppState* state, int width, int height) {
assert(app);
assert(state);
(void)width;
(void)height;
}
GFX_APP_MAIN(WIDTH, HEIGHT, MAX_FPS, TITLE)
|