-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScene.h
More file actions
27 lines (25 loc) · 915 Bytes
/
Scene.h
File metadata and controls
27 lines (25 loc) · 915 Bytes
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
/**
* \author Marie DARRIGOL & Anthony LEONARD & Ophélie PELLOUX-PRAYER & Olivier SOLDANO
* \project Ray-Tracing
* \file scene.h
* \brief represent a scene, containing the objects to draw, the lights, and the background color.
*/
#pragma once
#include <vector>
#include <stdlib.h>
#include "Light.h"
#include "SceneObject.h"
#include "Color.h"
class Scene{
public:
Scene();
Scene(vector<SceneObject*>* sceneObjects, vector<Light*>* lights, Color background);
inline vector<SceneObject*>* getSceneObjects(){ return sceneObjects; };
inline vector<Light*>* getLights() { return lights; };
inline Color getBackground() { return background; };
//TODO: replace getters by adders and deleters to remove direct access to private member
private:
vector<SceneObject*>* sceneObjects; ///< objects to be drawn
vector<Light*>* lights; ///< lights on the scene
Color background; ///< background color of the scene
};