Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/long_cube.cpp @ 212:c020ccff4627 draft
fix
author | gongo@localhost.localdomain |
---|---|
date | Sat, 31 Jan 2009 08:54:22 +0900 |
parents | |
children | 443c7ae1c7a7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TaskManager/Test/test_render/long_cube.cpp Sat Jan 31 08:54:22 2009 +0900 @@ -0,0 +1,31 @@ +#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); +}