view TaskManager/Test/test_render/snake_bg.cpp @ 150:bbf774c57544

add xml
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Tue, 02 Dec 2008 19:10:34 +0900
parents 58eacf676bb5
children fd72aa05d77b
line wrap: on
line source

#include "SceneGraph.h"
//#include "xml_file/snake576x384.h"
#include "xml_file/snake800x600.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(void)
{
    SceneGraph::createFromXMLfile("xml_file/snake800x600.xml");
    Plane->set_move_collision(snake_move, snake_collision);
}