]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.h
no need to update lightmaps if using r_vertexsurfaces
[xonotic/darkplaces.git] / model_shared.h
index 6fc568cf3f835777b71e110e8b5fd279c4d4f8e0..d58fc9bc4aeb52d242525a93776ae97da4d34e49 100644 (file)
@@ -115,8 +115,6 @@ typedef struct model_s
 
        // brush model specific
        int                             firstmodelsurface, nummodelsurfaces;
-       // LordHavoc: sorted surface pointer array, sorted by shader type and then by texture
-       msurface_t              **modelsortedsurfaces; // [nummodelsurfaces]
 
        // lightmap format, set to r_lightmaprgba when model is loaded
        int                             lightmaprgba;
@@ -145,6 +143,9 @@ typedef struct model_s
 
        int                             numsurfaces;
        msurface_t              *surfaces;
+       int                             *surfacevisframes;
+       int                             *surfacepvsframes;
+       msurface_t              *surfacepvsnext;
 
        int                             numsurfedges;
        int                             *surfedges;
@@ -153,12 +154,12 @@ typedef struct model_s
        dclipnode_t             *clipnodes;
 
        int                             nummarksurfaces;
-       msurface_t              **marksurfaces;
+       int                             *marksurfaces;
 
        hull_t                  hulls[MAX_MAP_HULLS];
 
        int                             numtextures;
-       texture_t               **textures;
+       texture_t               *textures;
 
        qbyte                   *visdata;
        qbyte                   *lightdata;
@@ -226,9 +227,6 @@ model_t *Mod_ForName (char *name, qboolean crash, qboolean checkdisk, qboolean i
 void Mod_TouchModel (char *name);
 void Mod_UnloadModel (model_t *mod);
 
-mleaf_t *Mod_PointInLeaf (float *p, model_t *model);
-qbyte *Mod_LeafPVS (mleaf_t *leaf, model_t *model);
-
 void Mod_ClearUsed(void);
 void Mod_PurgeUnused(void);