Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/Application.cc @ 444:bd81b461d2fc
test_render is not working...
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 25 Sep 2009 05:54:33 +0900 |
parents | cf2704424cc0 |
children | 579d71efbd70 |
line wrap: on
line source
#include "Application.h" #include "SceneGraph.h" // void // Application::set_move_func(move_func new_move) // { // this->move = new_move; // } // void // Application::set_move_coll(coll_func new_coll) // { // this->coll = new_coll; // } void Application::set_move_taskid(int id) { this->move_taskid = id; } // void // Application::apply_property(PropertyPtr p, SceneGraphPtr sgptr) // { // sgptr->xyz[0] = p->xyz[0]; // sgptr->xyz[1] = p->xyz[1]; // sgptr->xyz[2] = p->xyz[2]; // sgptr->angle[0] = p->angle[0]; // sgptr->angle[1] = p->angle[1]; // sgptr->angle[2] = p->angle[2]; // sgptr->frame++; // } SceneGraphPtr Application::scenegraph_factory(void *p, int size) { //SceneGraphPtr sgptr = p->scenegraph; //apply_property(p, sgptr); return NULL; } SceneGraphPtr Application::scenegraph_connector(void *p, int size, SceneGraphPtr sg, SceneGraphPtr sg_available_list) { // SceneGraphPtr last = sg_available_list; // if (!last) { // sg_available_list = sg; // } else { // while (last->next) { // last = last->next; // } // last->next = sg; // sg->prev = last; // } // PropertyPtr p_curent = (PropertyPtr)sg->propertyPtr; // PropertyPtr p_parent = p[p_curent->parent_id]; // SceneGraphPtr s_parent = p_parent->scenegraph; // /* childrenのリストの最後に加える (brother として)*/ // if (s_parent->lastChild != NULL) { // SceneGraphPtr last = s_parent->lastChild; // last->brother = sg; // } // s_parent->lastChild = sg; // if (s_parent->children == NULL) { // s_parent->children = sg; // } // sg->parent = s_parent; return NULL; }