view Renderer/Engine/Application.cc @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents
children 97e1b0346597
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(){}
// 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;
}


void Application::init(TaskManager *manager, int w, int h) {
}

int Application::move_task_id() {
    return move_task_id_;
}