njDrawShapeMotion | Japanese |
---|---|
<-|INDEX|-- | |
Executes motion that includes shapes. |
#include <Ninja.h> void njInitShape( Float *buf ) Float *buf
#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; ...........
njDrawShapeMotion | <-|INDEX|-- |
---|