projects
/
laserbrain_demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
datamap object passed around while loading
[laserbrain_demo]
/
src
/
metascene.h
1
#ifndef METASCENE_H_
2
#define METASCENE_H_
3
4
#include <map>
5
#include "scene.h"
6
#include "mesh.h"
7
#include "datamap.h"
8
9
class MetaScene {
10
public:
11
SceneSet *sceneman;
12
TextureSet *texman;
13
DataMap datamap;
14
15
std::vector<Scene*> scenes;
16
17
Mesh *walk_mesh;
18
Vec3 start_pos;
19
Quat start_rot;
20
21
std::map<Scene*, void*> scndata;
22
23
24
MetaScene(SceneSet *sman, TextureSet *tman);
25
~MetaScene();
26
27
bool load(const char *fname);
28
bool scene_loaded(Scene *scn);
29
30
void update(float dt);
31
void draw() const;
32
};
33
34
#endif // METASCENE_H_