Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/panel.cpp @ 199:eb20274baa7c
add SceneGraph(ieshoot), add SystemSceneGraph(Camera)
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 26 Jan 2009 14:02:45 +0900 |
parents | 57921c8d21c5 |
children | d61fded0729e |
line wrap: on
line source
#include "SceneGraphRoot.h" #include "SGList.h" static void panel_move(SceneGraphPtr node, int screen_w, int screen_h); static void panel_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree); static void panel_move(SceneGraphPtr node, int screen_w, int screen_h) { } static void panel_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree) { } void panel_init(int bg) { SceneGraphPtr panel; if (bg == 2) { sgroot->createFromXMLfile("xml_file/panel_512.xml"); panel = sgroot->createSceneGraph(PANEL_512); } else if (bg == 3) { sgroot->createFromXMLfile("xml_file/panel_1024.xml"); panel = sgroot->createSceneGraph(PANEL_1024); } else { sgroot->createFromXMLfile("xml_file/panel_2048.xml"); panel = sgroot->createSceneGraph(PANEL_2048); } panel->set_move_collision(panel_move, panel_collision); sgroot->setSceneData(panel); }