summaryrefslogtreecommitdiff
path: root/app/demo/main.c
blob: 0b837111c06e40a6468a8c71e4af0bc4f532d3bc (plain)
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
#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(GfxAppState* state, int argc, const char** argv) {
  assert(state);

  (void)argc;
  (void)argv;

  return true;
}

void Shutdown(GfxAppState* state) {
  assert(state);
  //
}

void Update(GfxAppState* state, double t, double dt) {
  assert(state);

  (void)t;
  (void)dt;
}

void Render(GfxAppState* state) {
  assert(state);
  //
}

void Resize(GfxAppState* state, int width, int height) {
  assert(state);

  (void)width;
  (void)height;
}

GFX_APP_MAIN(WIDTH, HEIGHT, MAX_FPS, TITLE)