view TaskManager/Test/test_render/long_cube.cpp @ 228:c254a2bd1b34

remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
author gongo@gendarme.cr.ie.u-ryukyu.ac.jp
date Thu, 12 Feb 2009 16:31:38 +0900
parents fe2cc32cd94d
children e1d24c951408
line wrap: on
line source

#include "SceneGraphRoot.h"
#include "SGList.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)
{
}


void
lcube_init(int screen_w, int screen_h)
{
    SceneGraphPtr lcube;

    sgroot->createFromXMLfile("xml_file/LongCube.xml");
    lcube = sgroot->createSceneGraph(LongCube);
    lcube->set_move_collision(lcube_move, lcube_collision);

    sgroot->setSceneData(lcube);
}