-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprecomp.h
More file actions
98 lines (75 loc) · 2.11 KB
/
precomp.h
File metadata and controls
98 lines (75 loc) · 2.11 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
#pragma once
// add your includes to this file instead of to individual .cpp files
// to enjoy the benefits of precompiled headers:
// - fast compilation
// - solve issues with the order of header files once (here)
// do not include headers in header files (ever).
// Prevent expansion clashes (when using std::min and std::max):
#define NOMINMAX
#define SCRWIDTH 1280
#define SCRHEIGHT 720
// #define FULLSCREEN
// #define ADVANCEDGL // faster if your system supports it
// Glew should be included first
#include <GL/glew.h>
// Comment for autoformatters: prevent reordering these two.
#include <GL/gl.h>
#ifdef _WIN32
// Followed by the Windows header
#include <Windows.h>
// Then import wglext: This library tries to include the Windows
// header WIN32_LEAN_AND_MEAN, unless it was already imported.
#include <GL/wglext.h>
// Extra definitions for redirectIO
#include <fcntl.h>
#include <io.h>
#endif
// External dependencies:
#include <FreeImage.h>
#pragma warning(push)
#pragma warning(disable : 26812)
#include <SDL.h>
#pragma warning(pop)
// C++ headers
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include <memory>
#include <random>
#include <string>
#include <vector>
#include <limits>
#include <thread>
#include <mutex>
#include <shared_mutex>
#include <deque>
#include <future>
// Namespaced C headers:
#include <cassert>
#include <cinttypes>
#include <cmath>
#include <cstdio>
#include <cstdlib>
// Header for AVX, and every technology before it.
// If your CPU does not support this, include the appropriate header instead.
// See: https://stackoverflow.com/a/11228864/2844473
#include <immintrin.h>
// clang-format off
// "Leak" common namespaces to all compilation units. This is not standard
// C++ practice but a mere simplification for this small project.
using namespace std;
#include "surface.h"
#include "template.h"
using namespace Tmpl8;
#include "thread_pool.h"
#include "tank.h"
#include "rocket.h"
#include "smoke.h"
#include "explosion.h"
#include "particle_beam.h"
#include "boundary.h"
#include "spatial_hasher.h"
#include "kd_tree.h"
#include "game.h"
// clang-format on