diff Renderer/Application/long_cube.cc @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Application/long_cube.cc	Mon Oct 12 09:39:35 2009 +0900
@@ -0,0 +1,31 @@
+#include "SceneGraphRoot.h"
+#include "SGList.h"
+
+// prototype
+static void lcube_move(SceneGraphPtr node, int screen_w, int screen_h);
+//static void lcube_collision(SceneGraphPtr node, int screen_w, int screen_h);
+
+
+static void
+lcube_move(SceneGraphPtr node, int screen_w, int screen_h)
+{
+}
+
+static void
+lcube_collision(SceneGraphPtr node, int screen_w, int screen_h,
+	       SceneGraphPtr tree)
+{
+}
+
+
+void
+lcube_init(TaskManager *manager, int screen_w, int screen_h)
+{
+    SceneGraphPtr lcube;
+
+    sgroot->createFromXMLfile(manager, "xml_file/LongCube.xml");
+    lcube = sgroot->createSceneGraph(LongCube);
+    lcube->set_move_collision(lcube_move, lcube_collision);
+
+    sgroot->setSceneData(lcube);
+}