+ dclipnode_t *clipnodes;
+ mplane_t *planes;
+ int firstclipnode;
+ int lastclipnode;
+ vec3_t clip_mins;
+ vec3_t clip_maxs;
+ vec3_t clip_size;
+}
+hull_t;
+
+typedef struct mportal_s
+{
+ struct mportal_s *next; // the next portal on this leaf
+ mleaf_t *here; // the leaf this portal is on
+ mleaf_t *past; // the leaf through this portal (infront)
+ mvertex_t *points;
+ int numpoints;
+ mplane_t plane;
+ int visframe; // is this portal visible this frame?
+}
+mportal_t;
+
+typedef struct svbspmesh_s
+{
+ struct svbspmesh_s *next;
+ int numverts, maxverts;
+ int numtriangles, maxtriangles;
+ float *verts;
+ int *elements;
+}
+svbspmesh_t;
+
+typedef struct mlight_s
+{
+ // location of light
+ vec3_t origin;
+ // distance attenuation scale (smaller is a larger light)
+ float falloff;
+ // color and brightness combined
+ vec3_t light;
+ // brightness bias, used for limiting radius without a hard edge
+ float subtract;
+ // spotlight direction
+ vec3_t spotdir;
+ // cosine of spotlight cone angle (or 0 if not a spotlight)
+ float spotcone;
+ // distance bias (larger value is softer and darker)
+ float distbias;
+ // light style controlling this light
+ int style;
+ // maximum extent of the light for shading purposes
+ float lightradius;
+ // maximum extent of the light for culling purposes
+ float cullradius;
+ float cullradius2;
+ /*
+ // surfaces this shines on
+ int numsurfaces;
+ msurface_t **surfaces;
+ // lit area
+ vec3_t mins, maxs;
+ // precomputed shadow volume meshs
+ //svbspmesh_t *shadowvolume;
+ //vec3_t shadowvolumemins, shadowvolumemaxs;
+ shadowmesh_t *shadowvolume;
+ */
+}
+mlight_t;
+
+extern rtexture_t *r_notexture;
+extern texture_t r_notexture_mip;
+
+struct model_s;
+void Mod_LoadBrushModel (struct model_s *mod, void *buffer);
+void Mod_BrushInit(void);
+
+void Mod_FindNonSolidLocation(vec3_t pos, struct model_s *mod);
+mleaf_t *Mod_PointInLeaf (const float *p, struct model_s *model);
+int Mod_PointContents (const float *p, struct model_s *model);
+qbyte *Mod_LeafPVS (mleaf_t *leaf, struct model_s *model);
+void Mod_BuildPVSTextureChains(struct model_s *model);
+
+#endif
+