]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_q1bsp.h
model: Split up headers. Introduce headers for each BSP format.
[xonotic/darkplaces.git] / model_q1bsp.h
diff --git a/model_q1bsp.h b/model_q1bsp.h
new file mode 100644 (file)
index 0000000..e5a0cdc
--- /dev/null
@@ -0,0 +1,45 @@
+#ifndef MODEL_Q1BSP_H
+#define MODEL_Q1BSP_H
+
+#include "qtypes.h"
+#include "model_brush.h"
+
+typedef struct model_brushq1_s
+{
+       mmodel_t                *submodels;
+
+       int                             numvertexes;
+       mvertex_t               *vertexes;
+
+       int                             numedges;
+       medge_t                 *edges;
+
+       int                             numtexinfo;
+       struct mtexinfo_s               *texinfo;
+
+       int                             numsurfedges;
+       int                             *surfedges;
+
+       int                             numclipnodes;
+       mclipnode_t             *clipnodes;
+
+       hull_t                  hulls[MAX_MAP_HULLS];
+
+       int                             num_compressedpvs;
+       unsigned char                   *data_compressedpvs;
+
+       int                             num_lightdata;
+       unsigned char                   *lightdata;
+       unsigned char                   *nmaplightdata; // deluxemap file
+
+       // lightmap update chains for light styles
+       int                             num_lightstyles;
+       model_brush_lightstyleinfo_t *data_lightstyleinfo;
+
+       // this contains bytes that are 1 if a surface needs its lightmap rebuilt
+       unsigned char *lightmapupdateflags;
+       qbool firstrender; // causes all surface lightmaps to be loaded in first frame
+}
+model_brushq1_t;
+
+#endif
\ No newline at end of file