-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.h
More file actions
62 lines (54 loc) · 1.19 KB
/
render.h
File metadata and controls
62 lines (54 loc) · 1.19 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
#pragma once
#ifndef RENDER_H
#define RENDER_H
// GLFW - glad - stb_image
#include <glad/glad.h>
#include <GLFW/glfw3.h>
//#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
// GLM Mathemtics
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// GL includes
#include "shader.h"
#include "camera.h"
#include "model.h"
#include "shape.h"
#include <iostream>
namespace visualisation
{
class render
{
private:
shape* room;
unsigned int wallVAO, floorVAO, doorVAO, windowVAO;
vector<unsigned int> roomTextures;
vector<unsigned int> roomVAO;
vector<const char*> imgDir;
vector<string> modelPath;
vector<glm::vec3> modelPosition;
vector<glm::vec3> modelScale;
vector<double> modelAngle;
vector<Model> models;
vector<glm::vec3> roomPosition;
vector<glm::vec3> roomScale;
double w;
double l;
double h;
public:
render(shape* room);
~render();
void getSize();
void visualise();
void setCameraPosition();
GLFWwindow* intiframework();
Shader setupshaders();
void loadFurnitures();
void loadRoom();
void setRoomVertices(float vertices[], int size);
void loadDoorAndWindow();
void loadTextures(Shader shader);
};
}
#endif