njFastDrawShapeMotion Japanese
<-|INDEX|->
Executes motion that includes shapes.

FORMAT

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

PARAMETERS

object
Pointer to object structure
motion
Pointer to motion structure
shape
Pointer to motion structure (vertex animation data)
frame
Frame number

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


EXAMPLE

#include <NINJA.H> 

#define  OBJECT    object_sample  /* described within NJA (NAM) file */
#define  MOTION    motion_sample  /* described within NAM file */
#define  SHAPE    shape_sample  /* described within NAS file */
extern NJS_OBJECT  OBJECT[];
extern NJS_MOTION  MOTION[];
extern NJS_MOTION  SHAPE[];
float  buf[10000];
float  ff=0.f;

...........
InitShape(buf);

...........
njFastDrawShapeMotion( OBJECT,MOTION,SHAPE,ff );

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

NOTES

The drawing performed by this function is identical to model drawing, except that motion and shapes (vertex animation) have 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
njInitShape()
njDrawShapeMotion()

njFastDrawShapeMotion
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997