Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/Application.cc @ 506:5d8e364027d5 draft
change Application
author | hiroki@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 12 Oct 2009 11:26:17 +0900 |
parents | 574be19530a5 |
children | 9f23e9d4973f |
line wrap: on
line source
#include "Application.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; } */ Application::Application(){} Application::~Application(){} #if 0 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; } #endif /* SceneGraphPtr Application::scenegraph_factory(void *p, int size) { } SceneGraphPtr Application::scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list) { } */ void Application::apply_property(void *p, SceneGraphPtr sgptr) { } void Application::scenegraph_factory(void *p, int size) { } void Application::scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list) { } void Application::init(TaskManager *manager, int w, int h) { } int Application::move_task_id() { return move_task_id_; }