diff 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
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc	Tue Jun 22 16:10:28 2010 +0900
+++ b/Renderer/Engine/SceneGraphRoot.cc	Sun Jun 27 23:01:44 2010 +0900
@@ -697,4 +697,18 @@
 
 }
 
+
+void
+SceneGraphRoot::set_game_task(int id, void *property, int size, PostFunction post_func)
+{ 
+  HTask *task = sgroot->tmanager->create_task(id);
+  task->set_cpu(SPE_ANY);
+  task->add_inData(property, size*16);
+  task->add_outData(property, size*16);
+  task->add_param((memaddr)1);
+  task->set_post(post_func, (void*)property, 0);
+  task->spawn();
+}
+
+
 /* end */