##### Ninja Library - Light Function

# njLightAllOn

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

### FORMAT

`

  void njLightAllOn( void )

`

### PARAMETER

  None

### RETURN

  None

### DESCRIPTION

  Turns on the light source that is set to off. (Since the default is light on, this function doesn't need to be called.)

### 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 3 light sources off */
      njLightOff(&light[0]);
      njLightOff(&light[2]);
      njLightOff(&light[3]);
      	:
      /* Turn all light sources on */
      njLightAllOn();

### NOTE

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

### REFERENCE

  `njCreateLight()
  njLightAllOff()
  `

njLightAllOn

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999