Mercurial > hg > Game > Cerium
comparison Renderer/Engine/SceneGraphRoot.cc @ 869:a215927a9885 draft
set_game_task add to SceneGraphRoot.
author | tkaito |
---|---|
date | Sun, 27 Jun 2010 23:01:44 +0900 |
parents | 621954669342 |
children | 0d7b8ec6e42b |
comparison
equal
deleted
inserted
replaced
868:08ed5e750d78 | 869:a215927a9885 |
---|---|
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 */ |