Public Member Functions | Protected Attributes

GSkeleton Class Reference

#include <GSkeleton.h>

Inheritance diagram for GSkeleton:
GGraphicsObject GObject

List of all members.

Public Member Functions

 GSkeleton ()
 attached animationmanager
 GSkeleton (GSkeleton *)
 standard constructor
int Draw (double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS)
 constructor to duplicate instances
int Draw (double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS, int SelectedBone)
 draw skeleton with no particular bone selected
int DrawSprites (double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS)
 draw skeleton with a particular bone selected
GBoneGetRootBone ()
 acquire pointer to root bone
int SetRootBone (GBone *_root)
 Acquire pointer to root bone.
int Rebound (int FLAGS)
 Assign Skeleton a new root bone.
void Scale (GBone *_root, float s)
 Rebound skeleton bone by bone.
void Rotate (GBone *_root, GVec4f *Rotations)
 scale skeleton

Protected Attributes

GBoneroot
char type [25]
 root bone, with a biped this would normally be the hip
GAnimationManageranimationmanager
 type of the skeleton (biped, quadruped, snake, ...)

Constructor & Destructor Documentation

GSkeleton::GSkeleton (  ) 

attached animationmanager

GSkeleton::GSkeleton ( GSkeleton _skeleton  ) 

standard constructor


Member Function Documentation

int GSkeleton::Draw ( double  time,
double  dtime,
GMatrix16 viewmatrix,
GMatrix16 worldmatrix,
int  FLAGS 
) [virtual]

constructor to duplicate instances

draw skeleton with no bone selected

Implements GGraphicsObject.

int GSkeleton::Draw ( double  time,
double  dtime,
GMatrix16 viewmatrix,
GMatrix16 worldmatrix,
int  FLAGS,
int  SelectedBone 
)

draw skeleton with no particular bone selected

int GSkeleton::DrawSprites ( double  time,
double  dtime,
GMatrix16 viewmatrix,
GMatrix16 worldmatrix,
int  FLAGS 
) [virtual]

draw skeleton with a particular bone selected

Implements GGraphicsObject.

GBone * GSkeleton::GetRootBone (  ) 

acquire pointer to root bone

int GSkeleton::Rebound ( int  FLAGS  ) 

Assign Skeleton a new root bone.

void GSkeleton::Rotate ( GBone _root,
GVec4f Rotations 
)

scale skeleton

void GSkeleton::Scale ( GBone _root,
float  s 
)

Rebound skeleton bone by bone.

int GSkeleton::SetRootBone ( GBone _root  ) 

Acquire pointer to root bone.


Member Data Documentation

type of the skeleton (biped, quadruped, snake, ...)

GBone* GSkeleton::root [protected]
char GSkeleton::type[25] [protected]

root bone, with a biped this would normally be the hip


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines