Mercurial > hg > Members > kono > Cerium
view Renderer/test_render/long_cube.cpp @ 312:57530cb7f7d1
memMain tester
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Jun 2009 23:19:11 +0900 |
parents | 55ea4465b1a2 |
children |
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); }