-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene.h
53 lines (37 loc) · 897 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
#ifndef SCENE_H
#define SCENE_H
#include "common.h"
#include "geometry.h"
class Skybox;
class Cloud;
class Tornado;
class Terrain;
class PhysicsCollection;
typedef vector<SceneObject *> SceneObjects;
typedef vector<Light *> Lights;
class Scene
{
public:
Scene();
~Scene();
void initialize();
void render(DrawContext& context);
const Color& fogColor() const;
void setFogColor(const Color &fogColor);
float fogDensity() const;
void setFogDensity(float fogDensity);
void update(float dt);
void pick(const vec3& point);
void placeObject(const vec3& point);
private:
SceneObjects sceneObjects_;
Lights lights_;
PhysicsCollection* phys_;
Skybox* skybox_;
Tornado* tornado_;
Cloud* follower_;
Terrain* terrain_;
Color fogColor_;
float fogDensity_;
};
#endif // SCENE_H