2 Copyright (C) 2003, 2010 - Wolfire Games
4 This file is part of Lugaru.
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 See the GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #include "Quaternions.h"
27 #include "Constants.h"
30 /**> HEADER FILES <**/
32 #include "Quaternions.h"
39 #define normalattack 1
43 #define middleheight 1
97 int numverticesclothes;
107 void DoConstraint(bool spinny);
108 float rotate1,rotate2,rotate3;
109 float lastrotate1,lastrotate2,lastrotate3;
110 float oldrotate1,oldrotate2,oldrotate3;
111 float newrotate1,newrotate2,newrotate3;
144 Animation & operator = (const Animation & ani);
146 void Load(char *fileName, int aheight, int aattack);
158 //Joint joints[max_joints];
163 //Muscle muscles[max_muscles];
169 int forwardjoints[3];
174 int lowforwardjoints[3];
177 XYZ specialforward[5];
178 int jointlabels[max_joints];
187 Model drawmodelclothes;
192 GLubyte skinText[512*512*3];
206 void FindForwardsfirst();
207 float DoConstraints(XYZ *coords,float *scale);
208 void DoGravity(float *scale);
211 void Draw(int muscleview);
212 void AddJoint(float x, float y, float z, int which);
213 void SetJoint(float x, float y, float z, int which, int whichjoint);
214 void DeleteJoint(int whichjoint);
215 void AddMuscle(int attach1,int attach2,float maxlength,float minlength,int type);
216 void DeleteMuscle(int whichmuscle);
217 void FindRotationJoint(int which);
218 void FindRotationJointSameTwist(int which);
219 void FindRotationMuscle(int which, int animation);
220 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);