Mercurial > hg > Game > Cerium
annotate example/word_count3/spe/spe-main.cc @ 869:a215927a9885 draft
set_game_task add to SceneGraphRoot.
author | tkaito |
---|---|
date | Sun, 27 Jun 2010 23:01:44 +0900 |
parents | 217d7c53442b |
children |
rev | line source |
---|---|
508 | 1 #include "Func.h" |
2 #include "Scheduler.h" | |
3 | |
4 SchedExternTask(Hello); | |
5 SchedExternTask(Wait); | |
6 SchedExternTask(Exec); | |
7 SchedExternTask(Print); | |
8 | |
9 /** | |
10 * この関数は SpeScheduler から呼ばれるので | |
11 * 必ずこの関数名でお願いします。 | |
12 */ | |
13 void | |
14 task_init(Scheduler *s) | |
15 { | |
16 SchedRegisterTask(HELLO_TASK, Hello); | |
17 SchedRegisterTask(WAIT_TASK, Wait); | |
18 SchedRegisterTask(EXEC_TASK, Exec); | |
19 SchedRegisterTask(PRINT_TASK, Print); | |
20 } |