Mercurial > hg > Members > kono > Cerium
diff TaskManager/Test/test_render/ball_action.cpp @ 323:1f251e8cb2ec
add gaplant
author | aaa |
---|---|
date | Wed, 10 Jun 2009 17:18:15 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/Test/test_render/ball_action.cpp Wed Jun 10 17:18:15 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(); +}