-
Notifications
You must be signed in to change notification settings - Fork 0
/
precomp.h
80 lines (63 loc) · 1.56 KB
/
precomp.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
// 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).
#define SCRWIDTH 800
#define SCRHEIGHT 512
#define SCRWIDTHf 800.0f
#define SCRHEIGHTf 512.0f
#define ASPECT_RATIO 0.64f
#define BGCOLOR vec4(0, 0, 0, 0) //vec4(0.5f, 0.5f, 0.5f, 1)
#define BRIGHTNESS 1.5f
#define EPSILON 1e-3
#define CAMERA_ORIGIN vec3(0, 0, -3)
#define MULTITHREADING_ENABLED 1
#define BVH_ENABLED 1
#define STRATA_SIZE 1
#define STRATA_WIDTH 1.0f / STRATA_SIZE
enum MaterialType { diffuse, mirror, dielectric };
// #define FULLSCREEN
// #define ADVANCEDGL // faster if your system supports it
#include <inttypes.h>
extern "C"
{
#include "glew.h"
}
#include "gl.h"
#include "io.h"
#include <fstream>
#include <stdio.h>
#include "fcntl.h"
#include "SDL.h"
#include "wglext.h"
#include "freeimage.h"
#include "math.h"
#include "stdlib.h"
#include "emmintrin.h"
#include "immintrin.h"
#include "windows.h"
#include "template.h"
#include "surface.h"
#include "threads.h"
#include <assert.h>
#include <sstream>
#include <vector>
#include <FreeImage.h>
#include<random>
#include<cmath>
#include<chrono>
#include "quarticsolver.h"
#include "HDRBitmap.h"
#include "Ray.h"
#include "Camera.h"
#include "BoundingBox.h"
#include "Primitives.h"
#include "LightSources.h"
#include "BVHNode.h"
#include "BVH.h"
#include "TopBVH.h"
#include "Scene.h"
using namespace std;
using namespace Tmpl8;
#include "game.h"