njDeleteAllLight Japanese
|INDEX|■
This function deletes all the lights set at njCreateLight.

Syntax

#include <Ninja.h>
void    njDeleteAllLight( void )

Parameters

None

Return Value

None

Error

None

Description

This function deletes all the lights that were registered at the light source system.
However, after the lights are deleted, they can be re-installed again by calling njCreateLight again.

Example

#include <NINJA.H> 
...........

NJS_LIGHT light[3];

njInitSystem();
/* 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();
...........

Remark

None

Related Items

njCreateLight
njDeleteLight

njDeleteAllLight
|INDEX|■

Copyright SEGA ENTERPRISES, LTD., 1997