示例#1
0
void CloseLights()
{
  int i;
  for(i = 0;i < GL_MAX_LIGHTS;i++)
  {
    FreeLight(&LightList[i]);
  }
}
示例#2
0
 REPEAT(MAX_LIGHTS, i)
 {
     Light* light = &world->lights[i];
     if(light->active)
     {
         Error("Light #%d (%p) was still active when the world was destroyed.",
               i, light);
         FreeLight(light);
     }
 }