NWengine 0.9
Loading...
Searching...
No Matches
Globals.h
1#pragma once
2
3#include "Maths.h"
4#include <iostream>
5
6
7//For now using just printf, should output to console later
8#define NW_LOG_ERROR(str) printf(str)
9#define NW_LOG_WARNING(str) printf(str)
10#define NW_LOG(str) printf(str)
11
12
13//arch is always an integer type with size of pointer of the architecture
14typedef long arch;
15
16typedef int8_t int8;
17typedef int32_t int32;
18typedef int16_t int16;
19typedef int32_t int32;
20typedef int64_t int64;
21
22
23typedef uint8_t uint8;
24typedef uint32_t uint32;
25typedef uint16_t uint16;
26typedef uint32_t uint32;
27typedef uint64_t uint64;
28
29
30typedef Vector2<int> iVec2;
31typedef Vector2<float> fVec2;
32typedef Vector3<float> fVec3;
33typedef Vector3<int> iVec3;
36typedef Vector4<int> iVec4;
37typedef Vector4<float> fVec4;
39
40typedef Matrix2<int> iMat2;
41typedef Matrix3<int> iMat3;
42typedef Matrix2<float> fMat2;
43typedef Matrix3<float> fMat3;
44typedef Matrix4<int> iMat4;
45typedef Matrix4<float> fMat4;
46
47
48enum DataTypes {
49 NW_INT,
50 NW_FLOAT,
51 NW_DOUBLE,
52 NW_VEC2, //For shaders
53 NW_VEC3,
54 NW_IVEC2,
55 NW_IVEC3,
56 NW_FVEC2,
57 NW_FVEC3
58};
59
60
61enum EngineMode {
62 PLAY_MODE,
63 EDIT_MODE
64};
65
66
67class Globals {
68public:
69 //Consts
70 static const float SCREENRATIO;
71 //Paths
72};
Definition Globals.h:67
Definition Maths.h:407
Definition Maths.h:453
Definition Maths.h:513
Definition Maths.h:21
Definition Maths.h:174
Definition Maths.h:275