// 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;
int numsurfaces;
msurface_t *surfaces;
+ int *surfacevisframes;
+ int *surfacepvsframes;
+ msurface_t *surfacepvsnext;
int numsurfedges;
int *surfedges;
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;
mspriteframe_t *sprdata_frames;
// draw the model
- void(*Draw)(void);
+ void(*Draw)(struct entity_render_s *ent);
// draw the model's sky polygons (only used by brush models)
- void(*DrawSky)(void);
+ void(*DrawSky)(struct entity_render_s *ent);
// draw the model's shadows
- void(*DrawShadow)(void);
+ void(*DrawShadow)(struct entity_render_s *ent);
// memory pool for allocations
mempool_t *mempool;
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);