-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcube.h
87 lines (74 loc) · 1.66 KB
/
cube.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* @file cube.h
* @brief Needed for making games, along with iengine.h
*
* This header file, along with iengine.h and should be included when
* making games. This file is used by both the game and the engine, and includes
* all of the dependencies required to use the engine, such as STL and stdlib
* headers and SDL/zlib dependencies.
*/
#ifndef CUBE_H_
#define CUBE_H_
//use WIN32 as the macro identifier regardless of which is in use
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
#ifndef WIN32
#define WIN32
#endif
#endif
#ifdef WIN32
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include <type_traits>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cstdarg>
#include <climits>
#include <cfloat>
#include <cmath>
#include <cassert>
#include <cstring>
#include <ctime>
#include <algorithm>
#include <utility>
#include <vector>
#include <functional>
#include <unordered_map>
#include <queue>
#include <stack>
#include <array>
#include <map>
#include <set>
#include <unordered_set>
#include <fstream>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0500
#include "windows.h"
#ifndef _WINDOWS
#define _WINDOWS
#endif
#ifndef __GNUC__
#include <eh.h>
#include <dbghelp.h>
#include <intrin.h>
#endif
#define ZLIB_DLL
#endif
#include <SDL.h>
#include <GL/glew.h>
#include <GL/gl.h>
#include <zlib.h>
#include "tools.h"
#include "geom.h"
#include "ents.h"
#include "command.h"
#include "octa.h"
#include "slot.h"
#include "consts.h"
#endif /* CUBE_H_ */