##### Ninja Library - Light Function

# njLightAllOff

Turns off all the lights that were set by njCreateLight() function

### FORMAT

`

  void njLightAllOff( void )

`

### PARAMETER

  None

### RETURN

  None

### DESCRIPTION

  Turns off all the lights that were set by `njCreateLight()` function. However, after the lights are turned off, they can be turned on again by calling `njLightOn()` function again.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light[5];
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      njCreateLight(&light[0], NJD_DIR_LIGHT);
      njCreateLight(&light[1], NJD_POINT_LIGHT);
      njCreateLight(&light[2], NJD_SPOT_LIGHT);
      njCreateLight(&light[3], NJD_SPOT_LIGHT);
      njCreateLight(&light[4], NJD_SPOT_LIGHT);
      	:
      /* Turn off all light sources */
      njLightAllOff();

### NOTE

  Functions njCreateLight/njDeleteAllLight and njLightAllOn/njLightAllOff operate as if installing light bulb/removing light bulb and turning on and off electric lights.

### REFERENCE

  `njCreateLight()
  njLightOn()
  njLightAllOn()
  `

njLightAllOff

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999