njFastDrawMotion Japanese
<-|INDEX|->
Draws Motion

FORMAT

#include <Ninja.h>
void  njFastDrawMotion( object, motion, frame )
NJS_OBJECT  *object
NJS_MOTION  *motion
Float       frame

PARAMETERS

object
pointer for the object structure
motion
pointer for the motion structure
frame
frame number

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


EXAMPLE

#include <NINJA.H> 

#define  OBJECT    object_sample
#define  MOTION    motion_sample
extern NJS_MOTION  MOTION[];
extern NJS_OBJECT  OBJECT[];

...........
njFastDrawMotion( OBJECT,MOTION,ff );

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

NOTES

This function is identical to njAction(), except that the action structure has been divided into objects and motion. This function corresponds to the model drawing function njFastDrawObject, so the light source is bright light.

RELATED TOPICS

Related Items
njFastAction()
njAction()
njDrawMotion()

njFastDrawMotion
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997