njDrawShapeMotion Japanese
<-|INDEX|--
Executes motion that includes shapes.

FORMAT

#include <Ninja.h>
void  njInitShape( Float *buf )
Float    *buf

PARAMETERS

*buf
Shape buffer

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[6000];
float  ff=0.f;

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

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

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

NOTES

This function must be set for the following functions that draw shapes (vertex animation) (in which the shape motion parameter is not NULL): njDrawShapeMotion, njFastDrawShapeMotion, njDrawShapeMotionLink, and njFastDrawShapeMotionLink.

RELATED TOPICS

Related Items njDrawShapeMotion() njFastDrawShapeMotion() njDrawShapeMotionLink() njFastDrawShapeMotionLink()

njDrawShapeMotion
<-|INDEX|--

Copyright SEGA ENTERPRISES, LTD., 1997