-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLevel.h
45 lines (33 loc) · 1.06 KB
/
Level.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
#ifndef MIMEMA_LEVEL_H
#define MIMEMA_LEVEL_H
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/mat4x4.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtx/string_cast.hpp>
#include <vector>
#include <list>
#include "tracy/Tracy.hpp"
#include "DirectionalLight.h"
#include "PointLight.h"
#include "Object.h"
#include "Camera.h"
#include "RenderState.h"
namespace Mimema {
class Level {
static const std::string levelFolderLocation;
public:
glm::vec3 bbPos = {0, 0, 0};
glm::vec3 bbSize = {0, 0, 0};
glm::vec4 backgroundColor = glm::vec4(0, 0, 0, 1);
glm::vec3 ambientLightColor = {0, 0, 0};
float ambientLightIntensity = 0.0f;
Camera camera = Camera(Camera::CameraState());
std::list<DirectionalLight> directionalLights;
std::list<PointLight> pointLights;
std::list<Object> objects;
RenderState getState();
Level() = default;
explicit Level(const std::string& levelFile, const std::map<std::string, Renderable*>& renderables);
};
}
#endif // MIMEMA_LEVEL_H