]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/qcommon/reference.h
Merge commit 'f93b3f61846b91a5679daca40a5f23e355ac787b' into garux-merge
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / qcommon / reference.h
index 9acdc56bc70fc3f9cc1cb16bd717a642da1f9365..747c4d43230cf8e56f1036bb8dbad6e6f807ca3c 100644 (file)
-/*\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 REFERENCE_H\r
-#define REFERENCE_H\r
-\r
-#include "placement.h"\r
-\r
-#define MAX_REFPOINTS          16\r
-#define REF_MINCULLTIME                1.0\r
-\r
-typedef struct Reference_s\r
-{\r
-       int activecount;\r
-       Placement_t placement;\r
-} Reference_t;\r
-\r
-typedef struct LERPedReferences_s\r
-{\r
-       int                     refType;\r
-       int                     *jointIDs;\r
-       float           lastUpdate;\r
-       Reference_t references[MAX_REFPOINTS];\r
-       Reference_t oldReferences[MAX_REFPOINTS];\r
-} LERPedReferences_t;\r
-\r
-// Reference Types\r
-enum {\r
-       REF_NULL = -1,\r
-       REF_CORVUS,//0\r
-       REF_INSECT,//1\r
-       REF_PRIESTESS,//2\r
-       REF_MORK,//3\r
-       NUM_REFERENCED//4\r
-};\r
-\r
-// Corvus Reference Points\r
-enum {\r
-       CORVUS_LEFTHAND,//0\r
-       CORVUS_RIGHTHAND,\r
-       CORVUS_LEFTFOOT,\r
-       CORVUS_RIGHTFOOT,\r
-       CORVUS_STAFF,\r
-       CORVUS_BLADE,\r
-       CORVUS_HELL_HEAD,\r
-       NUM_REFERENCES_CORVUS//7\r
-};\r
-\r
-// Tchekrik Reference Points\r
-enum {\r
-       INSECT_STAFF,//0\r
-       INSECT_SWORD,\r
-       INSECT_SPEAR,\r
-       INSECT_RIGHTFOOT,\r
-       INSECT_LEFTFOOT,\r
-       NUM_REFERENCES_INSECT//5\r
-};\r
-\r
-// High Priestess Reference Points\r
-enum {\r
-       PRIESTESS_BACK,//0\r
-       PRIESTESS_STAFF,\r
-       PRIESTESS_LHAND,\r
-       PRIESTESS_RHAND,\r
-       PRIESTESS_RFOOT,\r
-       PRIESTESS_LFOOT,\r
-       NUM_REFERENCES_PRIESTESS//6\r
-};\r
-\r
-// Morcalavin Reference Points\r
-enum \r
-{\r
-       MORK_STAFFREF,//0\r
-       MORK_RFOOTREF,//1\r
-       MORK_LFOOTREF,//2\r
-       MORK_RHANDREF,//3\r
-       MORK_LHANDREF,//4\r
-       MORK_LEYEREF,//5\r
-       MORK_REYEREF,//6\r
-       NUM_REFERENCES_MORK//7\r
-};\r
-\r
-#define CORVUS_LIMBS_MASK      ((1 << CORVUS_LEFTHAND) | (1 << CORVUS_RIGHTHAND) | (1 << CORVUS_LEFTFOOT) | (1 << CORVUS_RIGHTFOOT))\r
-#define CORVUS_WEAPON_MASK     ((1 << CORVUS_STAFF) | (1 << CORVUS_BLADE) | (1 << CORVUS_HELL_HEAD))\r
-#define CORVUS_MASK                    (CORVUS_LIMBS_MASK | CORVUS_WEAPON_MASK)\r
-\r
-#define INSECT_MASK                    ((1 << INSECT_STAFF) | (1 << INSECT_SWORD) | (1 << INSECT_SPEAR) | (1 << INSECT_RIGHTFOOT) | (1 << INSECT_LEFTFOOT))\r
-\r
-#define PRIESTESS_MASK         ((1 << PRIESTESS_BACK) | (1 << PRIESTESS_STAFF) | (1 << PRIESTESS_LHAND) | (1 << PRIESTESS_RHAND) | (1 << PRIESTESS_RFOOT) | (1 << PRIESTESS_LFOOT))\r
-\r
-#define MORK_MASK                      ((1 << MORK_STAFFREF) | (1 << MORK_RFOOTREF) | (1 << MORK_LFOOTREF) | (1 << MORK_RHANDREF) | (1 << MORK_LHANDREF) | (1 << MORK_LEYEREF) | (1 << MORK_REYEREF))\r
-\r
-extern char *referenceRootNames[];\r
-extern int referenceRootNameOffsets[];\r
-extern int numReferences[];\r
-\r
-void EnableRefPoints(LERPedReferences_t *refInfo, int mask);\r
-void DisableRefPoints(LERPedReferences_t *refInfo, int mask);\r
-\r
-void InitReferenceMngr();\r
-void ReleaseReferenceMngr();\r
-\r
-LERPedReferences_t *LERPedReferences_new(int init_refType);\r
-void LERPedReferences_delete(LERPedReferences_t *toDelete);\r
-\r
-#endif\r
-\r
-\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 REFERENCE_H
+#define REFERENCE_H
+
+#include "placement.h"
+
+#define MAX_REFPOINTS       16
+#define REF_MINCULLTIME     1.0
+
+typedef struct Reference_s
+{
+       int activecount;
+       Placement_t placement;
+} Reference_t;
+
+typedef struct LERPedReferences_s
+{
+       int refType;
+       int         *jointIDs;
+       float lastUpdate;
+       Reference_t references[MAX_REFPOINTS];
+       Reference_t oldReferences[MAX_REFPOINTS];
+} LERPedReferences_t;
+
+// Reference Types
+enum {
+       REF_NULL = -1,
+       REF_CORVUS, //0
+       REF_INSECT, //1
+       REF_PRIESTESS, //2
+       REF_MORK, //3
+       NUM_REFERENCED //4
+};
+
+// Corvus Reference Points
+enum {
+       CORVUS_LEFTHAND, //0
+       CORVUS_RIGHTHAND,
+       CORVUS_LEFTFOOT,
+       CORVUS_RIGHTFOOT,
+       CORVUS_STAFF,
+       CORVUS_BLADE,
+       CORVUS_HELL_HEAD,
+       NUM_REFERENCES_CORVUS //7
+};
+
+// Tchekrik Reference Points
+enum {
+       INSECT_STAFF, //0
+       INSECT_SWORD,
+       INSECT_SPEAR,
+       INSECT_RIGHTFOOT,
+       INSECT_LEFTFOOT,
+       NUM_REFERENCES_INSECT //5
+};
+
+// High Priestess Reference Points
+enum {
+       PRIESTESS_BACK, //0
+       PRIESTESS_STAFF,
+       PRIESTESS_LHAND,
+       PRIESTESS_RHAND,
+       PRIESTESS_RFOOT,
+       PRIESTESS_LFOOT,
+       NUM_REFERENCES_PRIESTESS //6
+};
+
+// Morcalavin Reference Points
+enum
+{
+       MORK_STAFFREF, //0
+       MORK_RFOOTREF, //1
+       MORK_LFOOTREF, //2
+       MORK_RHANDREF, //3
+       MORK_LHANDREF, //4
+       MORK_LEYEREF, //5
+       MORK_REYEREF, //6
+       NUM_REFERENCES_MORK //7
+};
+
+#define CORVUS_LIMBS_MASK   ( ( 1 << CORVUS_LEFTHAND ) | ( 1 << CORVUS_RIGHTHAND ) | ( 1 << CORVUS_LEFTFOOT ) | ( 1 << CORVUS_RIGHTFOOT ) )
+#define CORVUS_WEAPON_MASK  ( ( 1 << CORVUS_STAFF ) | ( 1 << CORVUS_BLADE ) | ( 1 << CORVUS_HELL_HEAD ) )
+#define CORVUS_MASK         ( CORVUS_LIMBS_MASK | CORVUS_WEAPON_MASK )
+
+#define INSECT_MASK         ( ( 1 << INSECT_STAFF ) | ( 1 << INSECT_SWORD ) | ( 1 << INSECT_SPEAR ) | ( 1 << INSECT_RIGHTFOOT ) | ( 1 << INSECT_LEFTFOOT ) )
+
+#define PRIESTESS_MASK      ( ( 1 << PRIESTESS_BACK ) | ( 1 << PRIESTESS_STAFF ) | ( 1 << PRIESTESS_LHAND ) | ( 1 << PRIESTESS_RHAND ) | ( 1 << PRIESTESS_RFOOT ) | ( 1 << PRIESTESS_LFOOT ) )
+
+#define MORK_MASK           ( ( 1 << MORK_STAFFREF ) | ( 1 << MORK_RFOOTREF ) | ( 1 << MORK_LFOOTREF ) | ( 1 << MORK_RHANDREF ) | ( 1 << MORK_LHANDREF ) | ( 1 << MORK_LEYEREF ) | ( 1 << MORK_REYEREF ) )
+
+extern char *referenceRootNames[];
+extern int referenceRootNameOffsets[];
+extern int numReferences[];
+
+void EnableRefPoints( LERPedReferences_t *refInfo, int mask );
+void DisableRefPoints( LERPedReferences_t *refInfo, int mask );
+
+void InitReferenceMngr();
+void ReleaseReferenceMngr();
+
+LERPedReferences_t *LERPedReferences_new( int init_refType );
+void LERPedReferences_delete( LERPedReferences_t *toDelete );
+
+#endif