/[usata]/usata2/src/usata.cpp
ViewVC logotype

Diff of /usata2/src/usata.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by skunix, Sat Jan 15 19:33:57 2005 UTC revision 1.19 by skunix, Tue Jan 18 00:12:08 2005 UTC
# Line 1  Line 1 
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  //  //
# Line 104  namespace Line 104  namespace
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    
# Line 186  Usata::run() Line 186  Usata::run()
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");
# Line 194  Usata::run() Line 194  Usata::run()
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    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26