njFastAction Japanese
<-|INDEX|->
Draws Motion

FORMAT

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

PARAMETERS

action
pointer for the action structure
frame
frame number

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


EXAMPLE

#include <NINJA.H> 

#define  ACTION    action_sample /* described in nam */
extern NJS_ACTION  ACTION[];

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

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

NOTES

The drawing performed by this function is identical to model drawing, except that motion has been added. In other words, all of the njControl3D settings are identical. This function corresponds to the model drawing function njFastDrawObject, so the light source is bright light.

RELATED TOPICS

Related Items
njFastDrawMotion()
njAction()
njDrawMotion()

njFastAction
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997