Mercurial > hg > Game > Cerium
diff Renderer/Engine/SceneGraphRoot.cc @ 792:b480fc04206f draft
add light switch
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 02 May 2010 04:17:34 +0900 |
parents | 4d83a6a958fd |
children | 66497087393d |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc Thu Apr 29 23:12:48 2010 +0900 +++ b/Renderer/Engine/SceneGraphRoot.cc Sun May 02 04:17:34 2010 +0900 @@ -45,6 +45,10 @@ light[i]->xyz[0] = 0; light[i]->xyz[1] = 0; light[i]->xyz[2] = 0; + + light_switch[i] = 1; + light_sysswitch = 0; + } move_finish_flag = 0; @@ -648,4 +652,16 @@ return light_vector; } +int* +SceneGraphRoot::getLightSwitch() +{ + return light_switch; +} + +int +SceneGraphRoot::getLightSysSwitch() +{ + return light_sysswitch; +} + /* end */