-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScene.h
55 lines (35 loc) · 1007 Bytes
/
Scene.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
#define GLEW_STATIC
#include <glew.h>
// GLFW 3.x, to handle the OpenGL window
#include <glfw3.h>
// File and console I/O for logging and error reporting
#include <iostream>
// Math header for trigonometric functions
#include <cmath>
// another thing instead of GLFW
#include <glm.hpp>
#include <vec2.hpp>
#include <vec3.hpp>
#include <vec4.hpp>
#include <mat4x2.hpp>
#include <gtc/matrix_transform.hpp>
#include <gtc/type_ptr.hpp>
#include <vector>
//----
#include "Triangle.h"
#include "Stuff_n_Things.h"
class Scene
{
public:
Scene();
~Scene();
std::string itsScene = "itsScene";
glm::vec3 albedo = glm::vec3(0.8f,0.8f,0.8f);
void rayIntersection(Ray *ray);
// vector storing all triangles that build upp the scene
std::vector<Triangle*> sceneRoom;
std::vector<Triangle*>::iterator pointer;
void createScene();
// All vertices for the scene/room
Vertex v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14;
};