1 |
// -*- mode: C++; tab-width: 4; indent-tabs-mode: t; -*- vim:ts=4:sw=4 |
// -*- mode: C++; tab-width: 4; indent-tabs-mode: t; -*- vim:ts=4:sw=4 |
2 |
// |
// |
3 |
// Copyright (C) 2004 David Lau (skunix) |
// Copyright (C) 2004,2005 David Lau (skunix) |
4 |
// Chong Kai Xiong (descender) |
// Chong Kai Xiong (descender) |
5 |
// |
// |
6 |
// This file is part of The Plains of Usata. |
// This file is part of The Plains of Usata. |
7 |
// |
// |
104 |
|
|
105 |
} |
} |
106 |
Usata::Usata() |
Usata::Usata() |
107 |
: texture_manager(new TextureManager), |
: image_manager(new ImageManager), |
108 |
scene_manager(new SceneManager) |
scene_manager(new SceneManager) |
109 |
{ |
{ |
110 |
|
|
186 |
setup_video(); |
setup_video(); |
187 |
boost::filesystem::path datapath = find_data(); |
boost::filesystem::path datapath = find_data(); |
188 |
// FIXME: catch exceptions |
// FIXME: catch exceptions |
189 |
texture_manager->load_path(datapath); |
image_manager->load_path(datapath); |
190 |
GuiNode::create(scene_manager.get()); |
GuiNode::create(scene_manager.get()); |
191 |
|
|
192 |
Object * obj=ObjectRegistry::instance()->create("Something"); |
Object * obj=ObjectRegistry::instance()->create("Something"); |
194 |
GCInterface * gci = dynamic_cast<GCInterface*>(obj); |
GCInterface * gci = dynamic_cast<GCInterface*>(obj); |
195 |
gci->realize(*this, zzz); |
gci->realize(*this, zzz); |
196 |
|
|
|
|
|
|
//texture_manager->get("atex"); |
|
|
|
|
|
|
|
197 |
return loop(); |
return loop(); |
198 |
} |
} |
199 |
|
|