]> git.xonotic.org Git - xonotic/darkplaces.git/blob - model_q1bsp.h
cl_main: Fix double free of meshentities texture pool when running gamedir
[xonotic/darkplaces.git] / model_q1bsp.h
1 #ifndef MODEL_Q1BSP_H
2 #define MODEL_Q1BSP_H
3
4 #include "qtypes.h"
5 #include "model_brush.h"
6
7 typedef struct model_brushq1_s
8 {
9         mmodel_t                *submodels;
10
11         int                             numvertexes;
12         mvertex_t               *vertexes;
13
14         int                             numedges;
15         medge_t                 *edges;
16
17         int                             numtexinfo;
18         struct mtexinfo_s               *texinfo;
19
20         int                             numsurfedges;
21         int                             *surfedges;
22
23         int                             numclipnodes;
24         mclipnode_t             *clipnodes;
25
26         hull_t                  hulls[MAX_MAP_HULLS];
27
28         int                             num_compressedpvs;
29         unsigned char                   *data_compressedpvs;
30
31         int                             num_lightdata;
32         unsigned char                   *lightdata;
33         unsigned char                   *nmaplightdata; // deluxemap file
34
35         // lightmap update chains for light styles
36         int                             num_lightstyles;
37         model_brush_lightstyleinfo_t *data_lightstyleinfo;
38
39         // this contains bytes that are 1 if a surface needs its lightmap rebuilt
40         unsigned char *lightmapupdateflags;
41         qbool firstrender; // causes all surface lightmaps to be loaded in first frame
42 }
43 model_brushq1_t;
44
45 #endif