Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/snake_bg.cpp @ 268:2b7d631695ca draft
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 04 Jun 2009 00:00:09 +0900 |
parents | 70146cdec3d4 |
children |
line wrap: on
line source
#include "SceneGraph.h" #include "xml_file/snake576x384.h" #include "xml_file/snake800x600.h" #include "xml_file/1920x1080.h" static void snake_move(SceneGraphPtr node, int screen_w, int screen_h); static void snake_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree); static void snake_move(SceneGraphPtr node, int screen_w, int screen_h) { } static void snake_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree) { } void create_snake_bg(int bg) { if (bg == 2) { SceneGraph::createFromXMLfile("xml_file/snake576x384.xml"); } else if (bg == 3) { SceneGraph::createFromXMLfile("xml_file/snake800x600.xml"); } else { SceneGraph::createFromXMLfile("xml_file/1920x1080.xml"); } Plane->set_move_collision(snake_move, snake_collision); }