X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmetascene.h;h=9ac90924ebb14395a89f5259600a05b41e2612af;hb=80c04e7a9aa6d42f769dd4fa70c2c3113440cbce;hp=8d512eb9ee6b398fa32d16d9a57a8f0ee3aa86f1;hpb=72b941af07bbf2673539ad4eea073e68d3bcbbfc;p=laserbrain_demo diff --git a/src/metascene.h b/src/metascene.h index 8d512eb..9ac9092 100644 --- a/src/metascene.h +++ b/src/metascene.h @@ -1,8 +1,41 @@ #ifndef METASCENE_H_ #define METASCENE_H_ -class Scene; +#include +#include "scene.h" +#include "mesh.h" +#include "datamap.h" -bool load_scene(Scene *scn, const char *fname); +class MetaScene { +public: + DataMap datamap; + + std::vector scenes; + + Mesh *walk_mesh; + Vec3 start_pos; + Quat start_rot; + + std::map scndata; + + + MetaScene(); + ~MetaScene(); + + bool load(const char *fname); + bool scene_loaded(Scene *scn); + + void update(float dt); + void draw() const; + + /* helper functions which end up calling the corresponding Scene functions + * for every scene + */ + SceneNode *find_node(const char *name) const; + SceneNode *match_node(const char *qstr) const; + std::list match_nodes(const char *qstr) const; + + Scene *extract_nodes(const char *qstr); +}; #endif // METASCENE_H_