539
|
1 #include "../Func.h"
|
|
2 #include "Scheduler.h"
|
|
3
|
|
4 SchedExternTask(Create_SGP);
|
|
5 SchedExternTask(Update_SGP);
|
|
6 SchedExternTask(CreatePolygon);
|
|
7 SchedExternTask(CreatePolygonFromSceneGraph);
|
|
8 SchedExternTask(CreateSpan);
|
|
9
|
|
10 SchedExternTask(DrawSpan);
|
|
11 SchedExternTask(DrawSpanEnd);
|
|
12 SchedExternTask(DrawSpanRenew);
|
|
13 SchedExternTask(DrawBack);
|
|
14
|
|
15 SchedExternTask(LoadTexture);
|
|
16 SchedExternTask(SetTexture);
|
|
17
|
|
18 SchedExternTask(Move);
|
|
19 SchedExternTask(Draw);
|
|
20
|
|
21 SchedExternTask(Dummy);
|
|
22
|
|
23 SchedExternTask(ShowTime);
|
|
24 SchedExternTask(ChainMove);
|
|
25 SchedExternTask(SendKey);
|
|
26
|
|
27 SchedExternTask(UpdateKey);
|
|
28 SchedExternTask(InitKey);
|
|
29
|
|
30 SchedExternTask(Switch);
|
|
31
|
|
32
|
|
33 /**
|
|
34 * set_cpu(CPU_PPE) で動作する task
|
|
35 */
|
|
36 void
|
|
37 task_initialize()
|
|
38 {
|
|
39 SchedRegisterTask(TASK_CREATE_SGP, Create_SGP);
|
|
40 SchedRegisterTask(TASK_UPDATE_SGP, Update_SGP);
|
|
41 SchedRegisterTask(TASK_CREATE_PP, CreatePolygon);
|
|
42 SchedRegisterTask(TASK_CREATE_PP2, CreatePolygonFromSceneGraph);
|
|
43 SchedRegisterTask(TASK_CREATE_SPAN, CreateSpan);
|
|
44
|
|
45 SchedRegisterTask(TASK_DRAW_SPAN, DrawSpan);
|
|
46 SchedRegisterTask(TASK_DRAW_SPAN_END, DrawSpanEnd);
|
|
47 // SchedRegisterTask(TASK_DRAW_SPAN2, DrawSpanRenew);
|
|
48 SchedRegisterTask(TASK_DRAW_BACK, DrawBack);
|
|
49
|
|
50 SchedRegisterTask(TASK_INIT_TEXTURE, LoadTexture);
|
|
51 SchedRegisterTask(TASK_SET_TEXTURE, SetTexture);
|
|
52
|
|
53 SchedRegisterTask(TASK_MOVE, Move);
|
|
54 SchedRegisterTask(TASK_DRAW, Draw);
|
|
55
|
|
56 SchedRegisterTask(TASK_DUMMY, Dummy);
|
|
57
|
|
58 SchedRegisterTask(UPDATE_KEY, UpdateKey);
|
|
59 SchedRegisterTask(INIT_KEY_TASK, InitKey);
|
|
60
|
|
61 SchedRegisterTask(SHOW_TIME, ShowTime);
|
|
62 SchedRegisterTask(TASK_SWITCH, Switch);
|
|
63
|
|
64 // usr
|
|
65 SchedRegisterTask(CHAIN_MOVE, ChainMove);
|
|
66 }
|