njLightAllOff Japanese
|INDEX|
This function does not reflect all the lights set at njCreateLight
(i.e. it turns off the lights).

Syntax

#include <Ninja.h>
void   njLightAllOff( void )
NJS_LIGHT  *ptr

Parameters

Non

Return Value

None

Error

None

Description

This function turns of all the lights that were set.
However, after the lights are turned off, they can be turned on again by calling njLightOn again.

Example

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

NJS_LIGHT light[5];

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

Remark

The relationships of njCreateLight/njDeleteLight and njLightOn/njLightOff
functions are related to, for example, installing light bulb/removing light
bulb and turning on installed lights/turning off installed lights.

Related Items

njCreateLight
njLightOn

njLightAllOff
|INDEX|

Copyright SEGA ENTERPRISES, LTD., 1997