usata-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Usata-commits] Changes to usata2/src/usata.cpp


From: David Lau
Subject: [Usata-commits] Changes to usata2/src/usata.cpp
Date: Fri, 25 Feb 2005 13:08:03 -0500

Index: usata2/src/usata.cpp
diff -u usata2/src/usata.cpp:1.23 usata2/src/usata.cpp:1.24
--- usata2/src/usata.cpp:1.23   Tue Jan 25 08:28:27 2005
+++ usata2/src/usata.cpp        Fri Feb 25 18:08:01 2005
@@ -10,12 +10,13 @@
 // included in the software distribution, or visit
 // http://www.fsf.org/licenses/gpl.html.
 //
-// $Id: usata.cpp,v 1.23 2005/01/25 08:28:27 skunix Exp $
+// $Id: usata.cpp,v 1.24 2005/02/25 18:08:01 skunix Exp $
 
 #include "usata.hpp"
 #include "config.hpp"
 #include "util.hpp"
 #include "build_info.hpp"
+#include "scene-loader.hpp"
 #include "system.hpp"
 #include "log.hpp"
 #include "texture.hpp"
@@ -176,7 +177,7 @@
                        scene_manager->draw();
                        updated= false;
                }
-
+               mSceneLoader->update(*this);
        }
 
        return 0;
@@ -194,12 +195,9 @@
        // FIXME: catch exceptions
        image_manager->load_path(datapath);
        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);
 
+       mSceneLoader.reset( new SceneLoader(datapath) );
+       mSceneLoader->load("start.xml");                
        return loop();
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]