Go to the documentation of this file.00001 #pragma once
00002
00003 #include "constants.h"
00004 #include "GGraphicsObject.h"
00005 #include "GBone.h"
00006 #include "GAnimationManager.h"
00007
00008 class GAnimationManager;
00009
00010 class GSkeleton : public GGraphicsObject
00011 {
00012 protected:
00013 GBone *root;
00014 char type[25];
00015 GAnimationManager *animationmanager;
00016 public:
00017 GSkeleton();
00018 GSkeleton(GSkeleton *);
00019 int Draw(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS);
00020 int Draw(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS, int SelectedBone);
00021 int DrawSprites(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS);
00022 GBone *GetRootBone();
00023 int SetRootBone(GBone *_root);
00024 int Rebound(int FLAGS);
00025 void Scale(GBone *_root, float s);
00026 void Rotate(GBone *_root, GVec4f *Rotations);
00027 };