Mercurial > hg > Game > Cerium
view Renderer/Test/long_cube.cc @ 1245:a97b4dd4574c draft
Added tag real_matrix for changeset cd50c48f45e7
author | Kakeru TAMASIRO <e095736@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 11 Nov 2011 17:04:13 +0900 |
parents | 764772be1e3c |
children |
line wrap: on
line source
#include "SceneGraphRoot.h" #include "long_cube.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) { } MainLoopPtr lcube_init(Viewer *sgroot, 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); return sgroot; }