##### Ninja Library - Light Function

# njDeleteAllLight

Deletes all the lights

### FORMAT

`

  void njDeleteAllLight( void )

`

### PARAMETER

  None

### RETURN

  None

### DESCRIPTION

  Cancels all the lights that were registered at the light source system. However, after canceling the lights, they can be re-installed again by calling `njCreateLight()` function again.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light[3];
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      /* Register the three light sources */
      njCreateLight(&light[0], NJD_DIR_LIGHT);
      njCreateLight(&light[1], NJD_POINT_LIGHT);
      njCreateLight(&light[2], NJD_SPOT_LIGHT);
      	:
      /* Delete all light sources */
      njDeleteAllLight();
      	:

### REFERENCE

  `njCreateLight()
  njDeleteLight()
  `

njDeleteAllLight

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999