-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScene.h
51 lines (39 loc) · 1.17 KB
/
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
// *********************************************************
// Scene Class
// Author : Tamy Boubekeur ([email protected]).
// Copyright (C) 2010 Tamy Boubekeur.
// All rights reserved.
// *********************************************************
#ifndef SCENE_H
#define SCENE_H
#include <iostream>
#include <vector>
#include "Object.h"
#include "Light.h"
#include "BoundingBox.h"
class Scene {
public:
static Scene * getInstance ();
static void destroyInstance ();
inline std::vector<Object> & getObjects () { return objects; }
inline const std::vector<Object> & getObjects () const { return objects; }
inline std::vector<Light> & getLights () { return lights; }
inline const std::vector<Light> & getLights () const { return lights; }
inline const BoundingBox & getBoundingBox () const { return bbox; }
void updateBoundingBox ();
protected:
Scene ();
virtual ~Scene ();
private:
void buildDefaultScene ();
std::vector<Object> objects;
std::vector<Light> lights;
BoundingBox bbox;
};
#endif // SCENE_H
// Some Emacs-Hints -- please don't remove:
//
// Local Variables:
// mode:C++
// tab-width:4
// End: