background scene file loading introduces race condition with datamaps
[laserbrain_demo] / src / metascene.h
index e793a39..5d57ee0 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef METASCENE_H_
 #define METASCENE_H_
 
+#include <map>
 #include "scene.h"
 #include "mesh.h"
 
@@ -15,10 +16,14 @@ public:
        Vec3 start_pos;
        Quat start_rot;
 
+       std::map<Scene*, void*> scndata;
+
+
        MetaScene(SceneSet *sman, TextureSet *tman);
        ~MetaScene();
 
        bool load(const char *fname);
+       bool scene_loaded(Scene *scn);
 
        void update(float dt);
        void draw() const;