~vladh/peony

peony/src/types.hpp -rw-r--r-- 982 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
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
51
52
53
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

#pragma once

#include <stdint.h>
#include "glm.hpp"

typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef int64_t int64;
typedef int8 s8;
typedef int16 s16;
typedef int32 s32;
typedef int64 s64;

typedef int8 bool8;
typedef int16 bool16;
typedef int32 bool32;
typedef int64 bool64;
typedef bool8 b8;
typedef bool16 b16;
typedef bool32 b32;
typedef bool64 b64;

typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
typedef uint64_t uint64;
typedef uint8 u8;
typedef uint16 u16;
typedef uint32 u32;
typedef uint64 u64;

typedef float real32;
typedef double real64;
typedef real32 r32;
typedef real64 r64;

typedef glm::vec2 v2;
typedef glm::vec3 v3;
typedef glm::vec4 v4;
typedef glm::ivec2 iv2;
typedef glm::ivec3 iv3;
typedef glm::ivec4 iv4;
typedef glm::mat2 m2;
typedef glm::mat3 m3;
typedef glm::mat4 m4;
typedef glm::quat quat;