comparison Renderer/Engine/SceneGraphRoot.cc @ 869:bcc81531a672

set_game_task add to SceneGraphRoot.
author tkaito
date Sun, 27 Jun 2010 23:01:44 +0900
parents 355df7ef8f3f
children 79b2d56aa27a
comparison
equal deleted inserted replaced
868:58b4fb8ad77c 869:bcc81531a672
695 695
696 light_sysswitch = 0; 696 light_sysswitch = 0;
697 697
698 } 698 }
699 699
700
701 void
702 SceneGraphRoot::set_game_task(int id, void *property, int size, PostFunction post_func)
703 {
704 HTask *task = sgroot->tmanager->create_task(id);
705 task->set_cpu(SPE_ANY);
706 task->add_inData(property, size*16);
707 task->add_outData(property, size*16);
708 task->add_param((memaddr)1);
709 task->set_post(post_func, (void*)property, 0);
710 task->spawn();
711 }
712
713
700 /* end */ 714 /* end */