summaryrefslogtreecommitdiff
path: root/source/core.h
blob: fe9daf9026aedeb5697f7b508edfcd7ca031c7bc (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
#pragma once

#include <stdint.h>

typedef int8_t      i8;
typedef int16_t     i16;
typedef int32_t     i32;
typedef int64_t     i64;

typedef uint8_t     u8;
typedef uint16_t    u16;
typedef uint32_t    u32;
typedef uint64_t    u64;

typedef float       r32;
typedef double      r64;

typedef int8_t          b8;
typedef unsigned char   uchar;

#define internal static

struct GameState {
    u32 triangle_sp;
    u32 triangle_vao;
    u32 triangle_vbo;
    i32 width;
    i32 height;
};

enum GameEventType {
    GAME_EVENT_RESIZE = (1 << 1),
    GAME_EVENT_END
};