1405
|
1
|
|
2 #ifndef INCLUDED_LIGHT
|
|
3 #define INCLUDED_LIGHT
|
|
4
|
1406
|
5 #include "SceneGraphRoot.h"
|
1405
|
6 #include "TaskManager.h"
|
|
7
|
|
8 class SceneGraphRoot;
|
|
9
|
1406
|
10 class Light {
|
1405
|
11 public:
|
1406
|
12 Light(float w, float h,int spe_num_, SceneGraphRoot *sgroot_, TaskManager *manager_) {
|
1410
|
13 spe_num = spe_num_;
|
1405
|
14 sgroot = sgroot_;
|
|
15 manager = manager_;
|
|
16 }
|
|
17 ~Light(void);
|
|
18 float *light_xyz;
|
|
19 float *light_xyz_stock;
|
|
20 int *light_switch;
|
|
21 int *light_switch_stock;
|
|
22 int *light_sysswitch;
|
|
23 int light_sysswitch_stock;
|
1406
|
24 int spe_num;
|
1405
|
25 TaskManager *manager;
|
|
26 SceneGraphRoot *sgroot;
|
|
27
|
|
28 void init();
|
|
29 bool exec(HTaskPtr task_next);
|
1406
|
30 HTaskPtr update(HTaskPtr task_next);
|
1405
|
31
|
|
32 };
|
|
33
|
|
34 typedef Light *LightPtr;
|
|
35
|
|
36 #endif
|