Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/long_cube.cpp @ 238:443c7ae1c7a7 draft
warning clean
author | admin@mcbk.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 29 May 2009 13:43:52 +0900 |
parents | c020ccff4627 |
children | ce86b0186a4a |
line wrap: on
line source
#include "SceneGraphRoot.h" #include "SGList.h" // prototype static void lcube_move(SceneGraphPtr node, int screen_w, int screen_h); //static void lcube_collision(SceneGraphPtr node, int screen_w, int screen_h); static void lcube_move(SceneGraphPtr node, int screen_w, int screen_h) { } static void lcube_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree) { } void lcube_init(int screen_w, int screen_h) { SceneGraphPtr lcube; sgroot->createFromXMLfile("xml_file/LongCube.xml"); lcube = sgroot->createSceneGraph(LongCube); lcube->set_move_collision(lcube_move, lcube_collision); sgroot->setSceneData(lcube); }