diff Renderer/Engine/viewer.h @ 558:b05bae017029

boss1_action
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 18:38:07 +0900
parents 01b64f21405e
children a5fda4e51498
line wrap: on
line diff
--- a/Renderer/Engine/viewer.h	Thu Oct 22 17:34:12 2009 +0900
+++ b/Renderer/Engine/viewer.h	Thu Oct 22 18:38:07 2009 +0900
@@ -8,6 +8,7 @@
 #include "KeyStat.h"
 #include "MainLoop.h"
 #include "Application.h"
+#include "SceneGraphRoot.h"
 
 class Application;
 
@@ -36,6 +37,8 @@
     Uint32 video_flags;
     Uint32 *pixels;
 
+    SceneGraphRoot *sgroot;
+
     virtual void video_init(TaskManager *manager) = 0;
     void init();
 
@@ -63,11 +66,34 @@
     void getKey();
     void get_send_controll();
 
-    void createFromXMLfile(const char *file);
-    SceneGraph *createSceneGraph(int id);
-    void setSceneData(SceneGraph *g);
+    // void createFromXMLfile(const char *file);
+    // SceneGraph *createSceneGraph(int id);
+    // SceneGraph *createSceneGraph();
+    // void setSceneData(SceneGraph *g);
     void mainLoop();
 
+    void createFromXMLfile(const char *file)
+    {
+	sgroot->createFromXMLfile(manager, file);
+    }
+
+    SceneGraph * createSceneGraph(int id)
+    {
+	return sgroot->createSceneGraph(id);
+    }
+
+    SceneGraph * createSceneGraph()
+    {
+	return sgroot->createSceneGraph();
+    }
+
+    void setSceneData(SceneGraph *g)
+    {
+	sgroot->setSceneData(g);
+    }
+
+
+
 private:
     HTaskPtr initLoop();
     void speLoop();