comparison Renderer/Engine/SceneGraphRoot.h @ 792:b480fc04206f draft

add light switch
author yutaka@localhost.localdomain
date Sun, 02 May 2010 04:17:34 +0900
parents c0a8af52fa43
children 66497087393d
comparison
equal deleted inserted replaced
791:aaf73e612f73 792:b480fc04206f
55 // カメラオブジェクト 55 // カメラオブジェクト
56 Camera *camera; 56 Camera *camera;
57 57
58 // 光源のオブジェクト 58 // 光源のオブジェクト
59 SceneGraphPtr light[4]; 59 SceneGraphPtr light[4];
60 int light_switch[4];
61 int light_sysswitch;
60 // 光源の疑似 xml file 62 // 光源の疑似 xml file
61 // 光源は4つで決め打ち。 63 // 光源は4つで決め打ち。
62 // 4 * lightnum (4) = 16; 64 // 4 * lightnum (4) = 16;
63 float light_vector[16]; 65 float light_vector[16];
66
67
64 68
65 // SceneGraphIterator 69 // SceneGraphIterator
66 SceneGraphIteratorPtr iterator; 70 SceneGraphIteratorPtr iterator;
67 71
68 // fd of Linda taple space 72 // fd of Linda taple space
98 SceneGraphIteratorPtr getIterator(); 102 SceneGraphIteratorPtr getIterator();
99 SceneGraphIteratorPtr getIterator(SceneGraphPtr list); 103 SceneGraphIteratorPtr getIterator(SceneGraphPtr list);
100 CameraPtr getCamera(); 104 CameraPtr getCamera();
101 SceneGraphPtr getLight(int id); 105 SceneGraphPtr getLight(int id);
102 float* getLightVector(); 106 float* getLightVector();
107 int* getLightSwitch();
108 int getLightSysSwitch();
103 109
104 /* Other System API */ 110 /* Other System API */
105 void allExecute(int screen_w, int screen_h); 111 void allExecute(int screen_w, int screen_h);
106 void oneExecute(int screen_w, int screen_h); 112 void oneExecute(int screen_w, int screen_h);
107 void checkRemove(); 113 void checkRemove();