annotate TaskManager/Test/test_render/task/task_init.cc @ 417:475a01e217cd

add key
author Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
date Wed, 23 Sep 2009 21:05:24 +0900
parents dd2ab68e4036
children 9348e49f63cf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include "../Func.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include "Scheduler.h"
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 SchedExternTask(Create_SGP);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 SchedExternTask(Update_SGP);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 SchedExternTask(CreatePolygon);
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
7 SchedExternTask(CreatePolygonFromSceneGraph);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 SchedExternTask(CreateSpan);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 SchedExternTask(DrawSpan);
184
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 137
diff changeset
11 SchedExternTask(DrawSpanRenew);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 SchedExternTask(DrawBack);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 SchedExternTask(LoadTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 SchedExternTask(SetTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16
408
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
17 SchedExternTask(Move);
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
18 SchedExternTask(Draw);
397
a4f690f44842 delete manager (in kernel/ppe/TaskManager.h)
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 387
diff changeset
19
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 SchedExternTask(Dummy);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21
327
7c6d4b101956 add test_render/show_time.{cpp,h} {spe,task}/ShowTime.{cpp,h} but incomplete
aaa
parents: 321
diff changeset
22 SchedExternTask(ShowTime);
417
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
23 SchedExternTask(ChainMove);
406
25f44290b8a9 add task/SendKey
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 397
diff changeset
24 SchedExternTask(SendKey);
417
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
25 SchedExternTask(UpdateKey);
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
26 SchedExternTask(InitKey);
397
a4f690f44842 delete manager (in kernel/ppe/TaskManager.h)
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 387
diff changeset
27
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28 /**
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
29 * set_cpu(CPU_PPE) で動作する task
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 */
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31 void
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 task_initialize()
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
34 SchedRegisterTask(TASK_CREATE_SGP, Create_SGP);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 SchedRegisterTask(TASK_UPDATE_SGP, Update_SGP);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 SchedRegisterTask(TASK_CREATE_PP, CreatePolygon);
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
37 SchedRegisterTask(TASK_CREATE_PP2, CreatePolygonFromSceneGraph);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
38 SchedRegisterTask(TASK_CREATE_SPAN, CreateSpan);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40 SchedRegisterTask(TASK_DRAW_SPAN, DrawSpan);
387
5e2d30bfbf23 no compile error but not worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 356
diff changeset
41 // SchedRegisterTask(TASK_DRAW_SPAN2, DrawSpanRenew);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
42 SchedRegisterTask(TASK_DRAW_BACK, DrawBack);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 SchedRegisterTask(TASK_INIT_TEXTURE, LoadTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 SchedRegisterTask(TASK_SET_TEXTURE, SetTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
46
408
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
47 SchedRegisterTask(TASK_MOVE, Move);
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
48 SchedRegisterTask(TASK_DRAW, Draw);
397
a4f690f44842 delete manager (in kernel/ppe/TaskManager.h)
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 387
diff changeset
49
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
50 SchedRegisterTask(TASK_DUMMY, Dummy);
406
25f44290b8a9 add task/SendKey
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 397
diff changeset
51
417
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
52 SchedRegisterTask(UPDATE_KEY, UpdateKey);
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
53 SchedRegisterTask(INIT_KEY_TASK, InitKey);
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
54
327
7c6d4b101956 add test_render/show_time.{cpp,h} {spe,task}/ShowTime.{cpp,h} but incomplete
aaa
parents: 321
diff changeset
55 SchedRegisterTask(SHOW_TIME, ShowTime);
408
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
56
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
57 // usr
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
58 SchedRegisterTask(CHAIN_MOVE, ChainMove);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
59 }