njFastAction Japanese
<-|INDEX|->
Registering motion callback routine

FORMAT

#include <Ninja.h>
void    njFastAction( action, frame )
NJS_ACTION   *action
Float        frame

PARAMETERS

action
pointer to action structure
frame
frame number

RETURN VALUE

None

ERORR VALUE

None

FUNCTION


EXAMPLE

#include <NINJA.H> 

#define	ACTION		action_sample /* nam ɋL */
extern NJS_ACTION	ACTION[];

...........
njFastAction( ACTION,ff );

ff+=0.2f;
if( ff >= (ACTION->motion->nbFrame-1) ) ff=0.f;
...........

NOTES

Only adding motion, the drawing becomes entirely same one as model drawings: in other words, all of the setting of njControl3D becomes same. As it corresponds to njFastDrawObject in model functions, the light source becomes luminance light.

RELATED TOPICS

njFastDrawMotion()
njAction()
njDrawMotion()

njFastAction
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997