njRotateLightXYZ Japanese
<-|INDEX|->
Rotates a light matrix around the X, Y, and Z axes.

FORMAT

#include <NINJA.H> 
void njRotateLightXYZ( *ptr, angx, angy, angz )
NJS_LIGHT *ptr
Angle angx 
Angle angy 
Angle angz 

PARAMETERS

*ptr
light pointer
angx
angle of rotation around X axis
angy
angle of rotation around Y axis
angz
angle of rotation around Z axis

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


EXAMPLE

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

NJS_LIGHT light;

njInitSystem();
njCreateLight(&light, NJD_POINT_LIGHT);

...........
njClearMatrix();

/* Rotate 90 degrees around X axis, 
   60 degrees around Y axis, 
   and 30 degrees around Z axis */
njRotateLightXYZ(&light,
                 NJM_RAD_ANG(NJD_PI/2.f),
                 NJM_RAD_ANG(NJD_PI/3.f),
                 NJM_RAD_ANG(NJD_PI/6.f) );

NOTES


RELATED TOPICS

njCreateLight

njRotateLightXYZ
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997