Mercurial > hg > Game > Cerium
view Renderer/Test/long_cube.cc @ 540:4c5264373c51 draft
reorganization
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:43:07 +0900 |
parents | Renderer/Application/long_cube.cc@3bc98f6d31ff |
children | 764772be1e3c |
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(TaskManager *manager, int screen_w, int screen_h) { SceneGraphPtr lcube; sgroot->createFromXMLfile(manager, "xml_file/LongCube.xml"); lcube = sgroot->createSceneGraph(LongCube); lcube->set_move_collision(lcube_move, lcube_collision); sgroot->setSceneData(lcube); }