-
Notifications
You must be signed in to change notification settings - Fork 0
/
Panorama.hpp
49 lines (26 loc) · 840 Bytes
/
Panorama.hpp
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
// Universe Class
// Damien MATTEI
#ifndef PANORAMA_HPP
#define PANORAMA_HPP
#include <iostream>
//#include <sstream> // std::stringstream in display
#include <vector>
#include <list>
#include <assert.h> /* assert */
#include "Vector3D.hpp"
#include "Object.hpp"
#include "debug.hpp"
#define MAX_OBJECTS 100
using namespace std;
template <class T> class Panorama { // class can be changed in typename
public:
// data
// array of all 3D Object read from files .obj
Object<T> * arrayPtrObject[MAX_OBJECTS];
static inline int cpt_obj; // without inline the variable is not seen at link stage
Panorama();
~Panorama();
Object<T> & createObject(string filename);
};
template <class T> std::ostream& operator<< (std::ostream &out, const Panorama<T> &pan);
#endif /* PANORAMA_HPP */