]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_hlmdl.h
Add support for the .dpk package format used by Unvanquished
[xonotic/darkplaces.git] / model_hlmdl.h
index 58fde4e4bc2e87412ff0718e90c32a1ecfc386d5..125afd54b1e6f13072c9602156339ff8fda6affb 100644 (file)
@@ -18,6 +18,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 
+#ifndef MODEL_HLMDL_H
+#define MODEL_HLMDL_H
+
+#include "qtypes.h"
+#include "qdefs.h"
+
 /*
  * The Half-Life MDL format is Valve's format for models in GoldSrc engine.
  * 
@@ -25,9 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  * https://github.com/malortie/assimp/wiki/MDL:-Half-Life-1-file-format
  */
 
-#include "qtypes.h"
-#include "qdefs.h"
-
 #define HLPOLYHEADER (('T' << 24) + ('S' << 16) + ('D' << 8) + 'I')
 #define HLMDLHEADER "IDST"
 #define HLSEQHEADER "IDSQ"
@@ -242,3 +245,5 @@ typedef struct dhlmdl_trivert_s
        int16_t normindex;
        int16_t s, t;
 } dhlmdl_trivert_t;
+
+#endif