Ninja Library - Light Function

njRotateLightX

Rotates a light matrix around the X axis

FORMAT

void njRotateLightX( *ptr, angx )
NJS_LIGHT *ptr
Angle angx

PARAMETER

 *ptr  Pointer to light source 
 angx  X axis rotation angle 

RETURN

None

DESCRIPTION

Rotates light source matrix registered by njCreateLight() function on the X axis. Light source position and direction are calculated.

EXAMPLE

#include <Shinobi.h>
	:
NJS_LIGHT light;
sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
njCreateLight(&light, NJD_POINT_LIGHT);
	:
njClearMatrix();
/* Rotate 90 degrees on the X axis */
njRotateLightX(&light, NJM_RAD_ANG(NJD_PI/2.f));

NOTE

Light source needs to be specified by njCreateLight() function and njClearMatrix() function needs to be called beforehand.

REFERENCE

njCreateLight()

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