njTranslateLight Japanese
<-|INDEX|->
Applies a matrix that gives parallel translation along each axis.

FORMAT

#include <NINJA.H> 
void njTranslateLight( *ptr, tx, ty, tz )
NJS_LIGHT *ptr
Float tx 
Float ty 
Float tz 

PARAMETERS

*ptr
Light pointer
tx
Move in X-axis direction
ty
Move in Y-axis direction
tz
Move in Z-axis direction

RETURN VALUE

None

ERROR VALUE

None

FUNCTION

Translates light matrix registered by njCreateLight with elements x, y, and z.
Location and direction of light source will be calcurated.

EXAMPLE

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

NJS_LIGHT light;

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

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

/* Translate with elements of (10,0,-10) */
njTranslateLight(&light, 10.f, 0.f, -10.f);

NOTES

Light must be specified by njCreateLight, and njClearMatrix must be called beforehand.

RELATED TOPICS

njCreateLight()

njTranslateLight
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997