view TaskManager/Test/test_render/ball_action.cpp @ 357:6602b9ba4bfd draft

fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 17 Jul 2009 17:13:17 +0900
parents a65430fb7790
children
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();
}