view TaskManager/Test/test_render/Application/panel.cc @ 431:b40a9b901d71 draft

fix
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 20:43:14 +0900
parents 2c592936bbdf
children baefa979bb31
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(TaskManager *manager, int bg)
{
    SceneGraphPtr panel;

    if (bg == 2) {
	sgroot->createFromXMLfile(manager, "xml_file/panel_512.xml");
	panel = sgroot->createSceneGraph(PANEL_512);
    } else if (bg == 3) {
	sgroot->createFromXMLfile(manager, "xml_file/panel_1024.xml");
	panel = sgroot->createSceneGraph(PANEL_1024);
    } else {
	sgroot->createFromXMLfile(manager, "xml_file/panel_2048.xml");
	panel = sgroot->createSceneGraph(PANEL_2048);
    }

    panel->set_move_collision(panel_move, panel_collision);
    panel->xyz[2] = 30.0f;
    sgroot->setSceneData(panel);
}