5 #include "Quaternions.h"
11 #include "Quaternions.h"
18 #define normalattack 1
22 #define middleheight 1
76 int numverticesclothes;
86 void DoConstraint(bool spinny);
87 float rotate1,rotate2,rotate3;
88 float lastrotate1,lastrotate2,lastrotate3;
89 float oldrotate1,oldrotate2,oldrotate3;
90 float newrotate1,newrotate2,newrotate3;
123 Animation & operator = (const Animation & ani);
125 void Load(char *fileName, int aheight, int aattack);
137 //Joint joints[max_joints];
142 //Muscle muscles[max_muscles];
148 int forwardjoints[3];
153 int lowforwardjoints[3];
156 XYZ specialforward[5];
157 int jointlabels[max_joints];
166 Model drawmodelclothes;
171 GLubyte skinText[512*512*3];
185 void FindForwardsfirst();
186 float DoConstraints(XYZ *coords,float *scale);
187 void DoGravity(float *scale);
190 void Draw(int muscleview);
191 void AddJoint(float x, float y, float z, int which);
192 void SetJoint(float x, float y, float z, int which, int whichjoint);
193 void DeleteJoint(int whichjoint);
194 void AddMuscle(int attach1,int attach2,float maxlength,float minlength,int type);
195 void DeleteMuscle(int whichmuscle);
196 void FindRotationJoint(int which);
197 void FindRotationJointSameTwist(int which);
198 void FindRotationMuscle(int which, int animation);
199 void Load(char *fileName,char *lowfileName,char *clothesfileName,char *modelfileName,char *model2fileName,char *model3fileName,char *model4fileName,char *model5fileNamee,char *model6fileName,char *model7fileName,char *modellowfileName,char *modelclothesfileName, bool aclothes);