[Top][All Lists]
[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: |
Sun, 09 Jan 2005 04:52:16 -0500 |
Index: usata2/src/usata.cpp
diff -u usata2/src/usata.cpp:1.15 usata2/src/usata.cpp:1.16
--- usata2/src/usata.cpp:1.15 Mon Jan 3 07:43:49 2005
+++ usata2/src/usata.cpp Sun Jan 9 08:57:22 2005
@@ -10,7 +10,7 @@
// included in the software distribution, or visit
// http://www.fsf.org/licenses/gpl.html.
//
-// $Id: usata.cpp,v 1.15 2005/01/03 07:43:49 skunix Exp $
+// $Id: usata.cpp,v 1.16 2005/01/09 08:57:22 skunix Exp $
#include "usata.hpp"
#include "config.hpp"
@@ -20,6 +20,7 @@
#include "log.hpp"
#include "texture.hpp"
#include "scene-manager.hpp"
+#include "object-registry.hpp"
#include "exception_types.hpp"
#include "objects/top-nodes.hpp"
#include <boost/format.hpp>
@@ -102,7 +103,7 @@
}
Usata::Usata()
: texture_manager(new TextureManager),
- scene(new SceneManager)
+ scene_manager(new SceneManager)
{
}
@@ -157,14 +158,14 @@
{
++cnt;
updated=true;
- scene->update();
+ scene_manager->update();
}
if (cnt > 60)
quit=true;
if (updated)
{
- scene->draw();
+ scene_manager->draw();
updated= false;
}
@@ -184,7 +185,14 @@
boost::filesystem::path datapath = find_data();
// FIXME: catch exceptions
texture_manager->load_path(datapath);
- GuiNode::create(scene.get());
+ GuiNode::create(scene_manager.get());
+
+ Object * obj=ObjectRegistry::instance()->create("Something");
+ Object_sp zzz(obj);
+ GCInterface * gci = dynamic_cast<GCInterface*>(obj);
+ logstream << (void*)gci << log::commit;
+ gci->realize(*this, zzz);
+
//texture_manager->get("atex");
return loop();
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/02
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/02
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/03
- [Usata-commits] Changes to usata2/src/usata.cpp,
David Lau <=
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/10
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/15
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/17
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/19
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/20
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/21
- [Usata-commits] Changes to usata2/src/usata.cpp, David Lau, 2005/01/25