diff Renderer/Application/ball_action.cc @ 539:3bc98f6d31ff draft

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/ball_action.cc	Mon Oct 12 09:39:35 2009 +0900
@@ -0,0 +1,16 @@
+#include <iostream>
+#include "SceneGraphRoot.h"
+#include "SGList.h"
+using namespace std;
+
+void
+ball_move(SceneGraphPtr node, int w, int h)
+{
+    node->xyz[0] += 4;
+}
+
+void
+ball_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree)
+{
+    if (node->xyz[0] > 600) node->remove();
+}