Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iMotionTemplate Struct Reference

Interface to loading motion data. More...

#include <motion.h>

Inheritance diagram for iMotionTemplate:

iBase List of all members.

Public Methods

virtual const char* GetName ()=0
 Get the name of this motion.

virtual void SetDuration (float duration)=0
 Set the length of this motion.

virtual void SetLoopCount (int looping)=0
 Set the default number of times to looping this motion. More...

virtual void SetLoopFlip (bool enable)=0
 This setting controls whether the motion will be played reversed after each loop.

virtual int AddBone (const char *name)=0
 Add the bone name to the list of handled bones. More...

virtual int FindBoneByName (const char *name)=0
 Find a bone index by name.

virtual void AddFrameBone (int boneid, float frametime, const csVector3 &position, const csQuaternion &rotation)=0
 Add a keyframe to a handled bone by the bones index.


Detailed Description

Interface to loading motion data.

This represents a motion that can be used on a skeleton via the iMotionController interface.


Member Function Documentation

int iMotionTemplate::AddBone ( const char * name ) [pure virtual]
 

Add the bone name to the list of handled bones.

Returns the index of the into the array.

void iMotionTemplate::SetLoopCount ( int looping ) [pure virtual]
 

Set the default number of times to looping this motion.

Setting this value to -1 will loop forever. Setting this value to 0 will disable looping.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000