Mercurial > hg > Members > kono > Cerium
view Renderer/Test/ball_action.cc @ 585:987380738a50
chain_old
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 26 Oct 2009 09:03:14 +0900 |
parents | 71b3363c16bf |
children | d0b8860c17f8 |
line wrap: on
line source
#include <iostream> #include "SceneGraphRoot.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(); }