Mercurial > hg > Members > kono > Cerium
view Renderer/Test/ball_action.cc @ 559:ccb33e5bcf89
direction
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 19:10:03 +0900 |
parents | f6daf964f483 |
children | 71b3363c16bf |
line wrap: on
line source
#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(); }