]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
added firstmodelbrush/nummodelbrushes fields to model struct, and moved brushes from...
[xonotic/darkplaces.git] / model_shared.h
index b73deb56646a4fa326824aeb2557380d5bb75eae..c54472a429f0c500873d11ae6ea6b3c94f016f08 100644 (file)
@@ -216,6 +216,12 @@ typedef struct model_brush_s
        int num_surfaces;
        msurface_t *data_surfaces;
 
        int num_surfaces;
        msurface_t *data_surfaces;
 
+       int num_brushes;
+       q3mbrush_t *data_brushes;
+
+       int num_brushsides;
+       q3mbrushside_t *data_brushsides;
+
        // pvs
        int num_pvsclusters;
        int num_pvsclusterbytes;
        // pvs
        int num_pvsclusters;
        int num_pvsclusterbytes;
@@ -302,12 +308,6 @@ typedef struct model_brushq3_s
        int num_models;
        q3mmodel_t *data_models;
 
        int num_models;
        q3mmodel_t *data_models;
 
-       int num_brushes;
-       q3mbrush_t *data_brushes;
-
-       int num_brushsides;
-       q3mbrushside_t *data_brushsides;
-
        // freed after loading!
        int num_vertices;
        float *data_vertex3f;
        // freed after loading!
        int num_vertices;
        float *data_vertex3f;
@@ -389,6 +389,9 @@ typedef struct model_s
        // range of surface numbers in this (sub)model
        int                             firstmodelsurface;
        int                             nummodelsurfaces;
        // range of surface numbers in this (sub)model
        int                             firstmodelsurface;
        int                             nummodelsurfaces;
+       // range of collision brush numbers in this (sub)model
+       int                             firstmodelbrush;
+       int                             nummodelbrushes;
        // list of surface numbers in this (sub)model
        int                             *surfacelist;
        // surface meshes are merged to a smaller set of meshes to allow reduced
        // list of surface numbers in this (sub)model
        int                             *surfacelist;
        // surface meshes are merged to a smaller set of meshes to allow reduced