annotate TaskManager/Test/test_render/task/task_init.cc @ 419:9348e49f63cf

merge
author Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
date Wed, 23 Sep 2009 21:24:38 +0900
parents 475a01e217cd a71cc69f2343
children bd5b93d39597
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);
419
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 417 415
diff changeset
25
417
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
26 SchedExternTask(UpdateKey);
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
27 SchedExternTask(InitKey);
397
a4f690f44842 delete manager (in kernel/ppe/TaskManager.h)
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 387
diff changeset
28
408
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
29 SchedExternTask(ChainMove);
415
a71cc69f2343 SceneGraph switch add
tkaito@henri.cr.ie.u-ryukyu.ac.jp
parents: 409
diff changeset
30 SchedExternTask(Switch);
327
7c6d4b101956 add test_render/show_time.{cpp,h} {spe,task}/ShowTime.{cpp,h} but incomplete
aaa
parents: 321
diff changeset
31
397
a4f690f44842 delete manager (in kernel/ppe/TaskManager.h)
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 387
diff changeset
32
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 /**
321
f64d75473f95 merge 317
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 318
diff changeset
34 * set_cpu(CPU_PPE) で動作する task
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 */
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 void
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
37 task_initialize()
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
38 {
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39 SchedRegisterTask(TASK_CREATE_SGP, Create_SGP);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
40 SchedRegisterTask(TASK_UPDATE_SGP, Update_SGP);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 SchedRegisterTask(TASK_CREATE_PP, CreatePolygon);
137
6cf991f28c6c SceneGraphPack の代わりに、今は SceneGraph をそのまま使う様に設定。
gongo@gendarme.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
42 SchedRegisterTask(TASK_CREATE_PP2, CreatePolygonFromSceneGraph);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
43 SchedRegisterTask(TASK_CREATE_SPAN, CreateSpan);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45 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
46 // SchedRegisterTask(TASK_DRAW_SPAN2, DrawSpanRenew);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
47 SchedRegisterTask(TASK_DRAW_BACK, DrawBack);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
48
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
49 SchedRegisterTask(TASK_INIT_TEXTURE, LoadTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
50 SchedRegisterTask(TASK_SET_TEXTURE, SetTexture);
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
51
408
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
52 SchedRegisterTask(TASK_MOVE, Move);
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
53 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
54
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
55 SchedRegisterTask(TASK_DUMMY, Dummy);
406
25f44290b8a9 add task/SendKey
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 397
diff changeset
56
417
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
57 SchedRegisterTask(UPDATE_KEY, UpdateKey);
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
58 SchedRegisterTask(INIT_KEY_TASK, InitKey);
475a01e217cd add key
Hiroki NAKASONE <hiroki@cr.ie.u-ryukyu.ac.jp>
parents: 409
diff changeset
59
327
7c6d4b101956 add test_render/show_time.{cpp,h} {spe,task}/ShowTime.{cpp,h} but incomplete
aaa
parents: 321
diff changeset
60 SchedRegisterTask(SHOW_TIME, ShowTime);
415
a71cc69f2343 SceneGraph switch add
tkaito@henri.cr.ie.u-ryukyu.ac.jp
parents: 409
diff changeset
61 SchedRegisterTask(TASK_SWITCH, Switch);
408
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
62
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
63 // usr
edfde944672a add Move, Draw, ChainMove
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 407
diff changeset
64 SchedRegisterTask(CHAIN_MOVE, ChainMove);
109
5c194c71eca8 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
65 }