added delayed init call after scenegraph/meshes are done loading
[laserbrain_demo] / src / metascene.h
index c363901..0417c00 100644 (file)
@@ -1,12 +1,24 @@
 #ifndef METASCENE_H_
 #define METASCENE_H_
 
+#include <vector>
 #include <map>
 #include "scene.h"
 #include "mesh.h"
+#include "geom.h"
 #include "audio/ovstream.h"
 #include "datamap.h"
 
+
+struct FlatMirror {
+       Plane plane;
+       float reflect;
+       //std::vector<Object*> objects;
+
+       FlatMirror *next;
+};
+
+
 class MetaScene {
 public:
        DataMap datamap;
@@ -19,6 +31,10 @@ public:
 
        std::map<Scene*, void*> scndata;
 
+       FlatMirror *mirrors;
+       int num_mirrors;
+       std::map<Object*, FlatMirror*> objmirror;
+
        AudioStream *music;
 
        MetaScene();
@@ -38,6 +54,8 @@ public:
        std::list<SceneNode*> match_nodes(const char *qstr) const;
 
        Scene *extract_nodes(const char *qstr);
+
+       int calc_mirror_planes();
 };
 
 #endif // METASCENE_H_