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

- This function draws motion according to the motion data.
- Because floating-point data can be used for frame numbers, the motion data can be interpolated.
- In the case of a motion consisting of 10 frames, the frame numbers can range from 0 to just under 10 (i.e., 9.9999).
- For example, if the frame number is 0.5, the values used for drawing are interpolated as exactly halfway between the values for frame 0 and the values for frame 1.
- Interpolation from 9 to just under 10 (9.9999) becomes interpolation between the last frame and the first frame.
- This also applies to vertex animation.

### 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|->