comparison Renderer/Engine/viewer.h @ 793:c260205d3185

add light switch api
author yutaka@localhost.localdomain
date Mon, 03 May 2010 05:09:58 +0900
parents f2497e0ecd7c
children 649e4cb84683
comparison
equal deleted inserted replaced
792:f2497e0ecd7c 793:c260205d3185
41 41
42 float *light_xyz; 42 float *light_xyz;
43 float *light_xyz_stock; 43 float *light_xyz_stock;
44 int *light_switch; 44 int *light_switch;
45 int *light_switch_stock; 45 int *light_switch_stock;
46 int *light_sysswitch;
47 int light_sysswitch_stock;
46 48
47 Uint32 video_flags; 49 Uint32 video_flags;
48 Uint32 *pixels; 50 Uint32 *pixels;
49 51
50 SceneGraphRoot *sgroot; 52 SceneGraphRoot *sgroot;
123 int getLast() 125 int getLast()
124 { 126 {
125 return sgroot->getLast(); 127 return sgroot->getLast();
126 } 128 }
127 129
130 SceneGraphPtr getLight(int id)
131 {
132 return sgroot->getLight(id);
133 }
134
135 void OnLightSwitch(int id)
136 {
137 sgroot->OnLightSwitch(id);
138 }
139
140 void OffLightSwitch(int id)
141 {
142 sgroot->OffLightSwitch(id);
143 }
144
145 void OnLightSysSwitch()
146 {
147 sgroot->OnLightSysSwitch();
148 }
149
150 void OffLightSysSwitch()
151 {
152 sgroot->OffLightSysSwitch();
153 }
154
128 }; 155 };
129 156
130 #define default_sdl_flag SDL_INIT_TIMER | SDL_INIT_JOYSTICK 157 #define default_sdl_flag SDL_INIT_TIMER | SDL_INIT_JOYSTICK
131 158
132 159