diff Renderer/Test/long_cube.cc @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Test/long_cube.cc	Mon Nov 08 01:23:25 2010 +0900
@@ -0,0 +1,32 @@
+#include "SceneGraphRoot.h"
+#include "long_cube.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)
+{
+}
+
+
+MainLoopPtr
+lcube_init(Viewer *sgroot, 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);
+    return sgroot;
+}