OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
stdafx.h
1 /*
2  Copyright (C) 2014 - 2016 Mutzii
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 */
18 #ifndef POLYGON_STDAFX_H
19 #define POLYGON_STDAFX_H
20 
21 #ifdef __GNUC__
22 #define DEPRECATED __attribute__((deprecated))
23 #elif defined(_MSC_VER)
24 #define DEPRECATED __declspec(deprecated)
25 #endif
26 
27 #define GLX_GLXEXT_LEGACY
28 #define GL_GLEXT_PROTOTYPES 1
29 #define GLX_GLXEXT_PROTOTYPES 1
30 #define GL3_PROTOTYPES 1
31 #define PI 3.1415926535897932384626433832795
32 
33 //Standard Header
34 #include <fstream>
35 #include <iostream>
36 #include <ios>
37 
38 #include <exception>
39 #include <vector>
40 #include <algorithm>
41 #include <time.h>
42 #include <typeinfo>
43 #include <math.h>
44 #include <string>
45 #include <stdio.h>
46 #include <cstdlib>
47 #include <cassert>
48 #include <ctime>
49 #include <stdlib.h>
50 #include <list>
51 #include <limits.h>
52 #include <string.h>
53 #include <sstream>
54 #include <mutex>
55 
56 #ifdef __linux__
57 
58 #include <sys/time.h>
59 #include <dirent.h>
60 
61 //X11
62 #include<X11/X.h>
63 #include<X11/Xlib.h>
64 
65 //OpenGL
66 #include <GL/gl.h>
67 #include <GL/glu.h>
68 
69 //GLX - GLUT
70 #include <GL/glx.h>
71 #include <GL/glut.h>
72 
73 //OpenGL Extensions
74 #include <GL/glext.h> // OpenGL v1.2
75 #include <GL/glxext.h> // GLX 1.3 API
76 #include <GL/glcorearb.h> // ARB Extensions
77 
78 #elif _WIN32
79 
80 //#include <tkPlatDecls.h>
81 #include "windows.h"
82 
83 #ifndef _DEBUG
84 #define _DEBUG
85 #endif
86 
87 
88 //OpenGL
89 #include <GL/gl.h>
90 #include <GL/glu.h>
91 #include <GL/glext.h>
92 #include <GL/glcorearb.h>
93 #include <GL/wglext.h>
94 
95 #pragma warning( disable : 4290 )
96 #pragma warning( disable : 4244 )
97 
98 #else
99 //other OS
100 #endif
101 
102 //Boost
103 #include <boost/uuid/uuid.hpp>
104 #include <boost/uuid/uuid_generators.hpp>
105 #include <boost/uuid/uuid_io.hpp>
106 #include <boost/array.hpp>
107 
108 #include <boost/thread/thread.hpp>
109 #include <boost/thread/mutex.hpp>
110 #include <boost/shared_ptr.hpp>
111 #include <boost/bind.hpp>
112 
113 //GLFW
114 #include <GLFW/glfw3.h>
115 
116 //Freeimage
117 #include <FreeImage.h>
118 
119 //FreeType
120 #include <ft2build.h>
121 #include FT_FREETYPE_H
122 
123 //GLM
124 #include <glm/glm.hpp>
125 #include <glm/gtc/matrix_transform.hpp>
126 #include <glm/gtc/type_ptr.hpp>
127 
128 #define GLM_MESSAGES
129 #define GLM_FORCE_RADIANS
130 
131 //LZ4
132 #include "lz4.h"
133 
134 //------------------
135 // Componentv2
136 //------------------
137 #include "databasemanager.h"
138 #include "componentbuilder.h"
139 
140 //OpenPolygon
141 //#define MESH_LOADER_DEBUG
142 //#define ENTITY_MANAGER_DEBUG
143 //#define OPENGL_DEBUG
144 
145 
146 using namespace std;
147 
148 #endif // STDAFX_H
149