16 |
#include "config.hpp" |
#include "config.hpp" |
17 |
#include "util.hpp" |
#include "util.hpp" |
18 |
#include "build_info.hpp" |
#include "build_info.hpp" |
19 |
|
#include "scene-loader.hpp" |
20 |
#include "system.hpp" |
#include "system.hpp" |
21 |
#include "log.hpp" |
#include "log.hpp" |
22 |
#include "texture.hpp" |
#include "texture.hpp" |
177 |
scene_manager->draw(); |
scene_manager->draw(); |
178 |
updated= false; |
updated= false; |
179 |
} |
} |
180 |
|
mSceneLoader->update(*this); |
181 |
} |
} |
182 |
|
|
183 |
return 0; |
return 0; |
195 |
// FIXME: catch exceptions |
// FIXME: catch exceptions |
196 |
image_manager->load_path(datapath); |
image_manager->load_path(datapath); |
197 |
GuiNode::create(scene_manager.get()); |
GuiNode::create(scene_manager.get()); |
|
|
|
|
Object * obj=ObjectRegistry::instance()->create("Something"); |
|
|
Object_sp zzz(obj); |
|
|
GCInterface * gci = dynamic_cast<GCInterface*>(obj); |
|
|
gci->realize(*this, zzz); |
|
198 |
|
|
199 |
|
mSceneLoader.reset( new SceneLoader(datapath) ); |
200 |
|
mSceneLoader->load("start.xml"); |
201 |
return loop(); |
return loop(); |
202 |
} |
} |
203 |
|
|