Ninja Library - Light Function

njLightOn

Turns on a light that was set by the njCreateLight() function.

FORMAT

void njLightOn( *ptr )
NJS_LIGHT *ptr

PARAMETER

 *ptr  Pointer to light source 

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;
sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
njCreateLight(&light, NJD_DIR_LIGHT);
	:
/* Turn off parallel light source */
njLightOff(&light);
	:
/* Turn on parallel light source */
njLightOn(&light);

NOTE

Functions njCreateLight/njDeleteLight and njLightOn/njLightOff operate as if installing light bulb/removing light bulb and turning on and off an electric lights.

REFERENCE

njCreateLight()
njLightOff()

njLightOn
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999