Beispiel #1
0
 public void register(RayTracedLight light)
 {
     if (m_lights == null)
     {
         m_lights = new List <RayTracedLight>();
     }
     m_lights.Add(light);
     ++m_lightCount;
     light.callBackOnChange(onLightChange);
 }
Beispiel #2
0
 public void unRegister(RayTracedLight light)
 {
     light.removeCallBackOnChange(onLightChange);
     m_lights.Remove(light);
     --m_lightCount;
 }
Beispiel #3
0
 public void onLightChange(RayTracedLight light)
 {
     m_reTrace = true;
 }