#include <GSkeleton.h>
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 | |
GBone * | GetRootBone () |
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 | |
GBone * | root |
char | type [25] |
root bone, with a biped this would normally be the hip | |
GAnimationManager * | animationmanager |
type of the skeleton (biped, quadruped, snake, ...) |
GSkeleton::GSkeleton | ( | ) |
attached animationmanager
GSkeleton::GSkeleton | ( | GSkeleton * | _skeleton | ) |
standard constructor
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::Scale | ( | GBone * | _root, | |
float | s | |||
) |
Rebound skeleton bone by bone.
int GSkeleton::SetRootBone | ( | GBone * | _root | ) |
Acquire pointer to root bone.
GAnimationManager* GSkeleton::animationmanager [protected] |
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