##### Ninja Library - Light Function

# njDeleteLight

Deletes a light

### FORMAT

`

  void njDeleteLight( *ptr )
  NJS_LIGHT *ptr

`

### PARAMETER

  `*ptr` | Pointer to light source

### RETURN

  None

### DESCRIPTION

  Cancels the light source specified in the light source system. However, after canceling the light, it can be re-installed again by calling `njCreateLight()` function again.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light;
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      /* Register parallel light source */
      njCreateLight(&light, NJD_DIR_LIGHT);
      	:
      /* Cancel parallel light source */
      njDeleteLight(&light);
      	:

### REFERENCE

  `njDeleteAllLight()
  njCreateLight()
  `

njDeleteLight

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999