]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/qd_skeletons.h
eol style
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / qd_skeletons.h
index 867e96020b8f55fd691f46dc64256677e2389387..59261432bc872cc3287dbc69e9ccb2f561e6ef08 100644 (file)
@@ -1,84 +1,84 @@
-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
-*/\r
-\r
-#ifndef QD_SKELETONS_H\r
-#define QD_SKELETONS_H\r
-\r
-#include "placement.h"\r
-\r
-\r
-typedef struct Placement_d_s\r
-{\r
-       vec3d_t origin;\r
-       vec3d_t direction;\r
-       vec3d_t up;\r
-} Placement_d_t;\r
-\r
-typedef struct QD_SkeletalJoint_s\r
-{\r
-       Placement_d_t placement;\r
-       vec3d_t         rotation;\r
-} QD_SkeletalJoint_t;\r
-\r
-#define NUM_CLUSTERS 8\r
-\r
-typedef struct IntListNode_s\r
-{\r
-       int data;\r
-       struct IntListNode_s *next;\r
-} IntListNode_t;  // gaak\r
-\r
-typedef struct Skeletalfmheader_s\r
-{\r
-       int type;\r
-       int clustered;\r
-       int references;\r
-\r
-       int *clusters[NUM_CLUSTERS];\r
-       IntListNode_t *vertLists[NUM_CLUSTERS];\r
-       int num_verts[NUM_CLUSTERS + 1];\r
-       int new_num_verts[NUM_CLUSTERS + 1];\r
-\r
-       float scaling[3];\r
-       float rotation[3];\r
-       float translation[3];\r
-} Skeletalfmheader_t;\r
-\r
-#define SKELETAL_NAME_MAX 32\r
-\r
-extern Skeletalfmheader_t g_skelModel;\r
-\r
-void ClearSkeletalModel();\r
-void GrabModelTransform(char *frame);\r
-void GrabSkeletalFrame(char *frame);\r
-void GrabReferencedFrame(char *frame);\r
-\r
-// Reference Stuff\r
-#define NUM_REFERENCES 8\r
-\r
-#define REF_MAX_POINTS 16\r
-#define REF_MAX_STRLEN 32\r
-\r
-// We're assuming no more than 16 reference points, with no more than 32 characters in the name\r
-extern char RefPointNameList[REF_MAX_POINTS][REF_MAX_STRLEN];\r
-extern int     RefPointNum;\r
-\r
-#endif\r
+/*
+Copyright (C) 1999-2007 id Software, Inc. and contributors.
+For a list of contributors, see the accompanying CONTRIBUTORS file.
+
+This file is part of GtkRadiant.
+
+GtkRadiant is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+GtkRadiant is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GtkRadiant; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+#ifndef QD_SKELETONS_H
+#define QD_SKELETONS_H
+
+#include "placement.h"
+
+
+typedef struct Placement_d_s
+{
+       vec3d_t origin;
+       vec3d_t direction;
+       vec3d_t up;
+} Placement_d_t;
+
+typedef struct QD_SkeletalJoint_s
+{
+       Placement_d_t placement;
+       vec3d_t         rotation;
+} QD_SkeletalJoint_t;
+
+#define NUM_CLUSTERS 8
+
+typedef struct IntListNode_s
+{
+       int data;
+       struct IntListNode_s *next;
+} IntListNode_t;  // gaak
+
+typedef struct Skeletalfmheader_s
+{
+       int type;
+       int clustered;
+       int references;
+
+       int *clusters[NUM_CLUSTERS];
+       IntListNode_t *vertLists[NUM_CLUSTERS];
+       int num_verts[NUM_CLUSTERS + 1];
+       int new_num_verts[NUM_CLUSTERS + 1];
+
+       float scaling[3];
+       float rotation[3];
+       float translation[3];
+} Skeletalfmheader_t;
+
+#define SKELETAL_NAME_MAX 32
+
+extern Skeletalfmheader_t g_skelModel;
+
+void ClearSkeletalModel();
+void GrabModelTransform(char *frame);
+void GrabSkeletalFrame(char *frame);
+void GrabReferencedFrame(char *frame);
+
+// Reference Stuff
+#define NUM_REFERENCES 8
+
+#define REF_MAX_POINTS 16
+#define REF_MAX_STRLEN 32
+
+// We're assuming no more than 16 reference points, with no more than 32 characters in the name
+extern char RefPointNameList[REF_MAX_POINTS][REF_MAX_STRLEN];
+extern int     RefPointNum;
+
+#endif