-
Notifications
You must be signed in to change notification settings - Fork 0
/
SolarSystem.h
54 lines (35 loc) · 1.01 KB
/
SolarSystem.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
#ifndef _HELLOSKYBOX_H_
#define _HELLOSKYBOX_H_
#include <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <map>
#include <vector>
#include <ctime>
//try static linking glew(opengl)
//#define GLEW_STATIC 1
// OpenGL / GLEW Headers
#include <GL/glew.h>
#ifdef __WIN32__
#include <GL/wglew.h>
#endif
// SDL2 Headers
#include <SDL2/SDL.h>
#include <FreeImagePlus.h>
#ifndef __WIN32__
#define GLM_ENABLE_EXPERIMENTAL
#endif
// Force old construnctor behavior (glm-version >= 0.9.9.x)
//#define GLM_FORCE_CTOR_INIT
#include <glm/glm.hpp>
#include <glm/gtx/quaternion.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/random.hpp>
#include <glm/gtx/string_cast.hpp>
#define MAT4_IDENTITY glm::mat4(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)
#define QUAT_IDENTITY glm::quat(MAT4_IDENTITY)
#define BUFFER_OFFSET(offset) ((void*)(offset))
#define MEMBER_OFFSET(s,m) ((char*)NULL + (offsetof(s,m)))
#endif //_HELLOSKYBOX_H_