// LordHavoc: replaces glpoly, triangle mesh
typedef struct surfmesh_s
{
+ // can be multiple meshs per surface
+ struct surfmesh_s *chain;
int numverts;
int numtriangles;
surfvertex_t *vertex;
// the stride when building lightmaps to comply with fragment update
int lightmaptexturestride;
// mesh for rendering
- surfmesh_t mesh;
+ surfmesh_t *mesh;
// these are just 3D points defining the outline of the polygon,
// no texcoord info (that can be generated from these)
float subtract;
vec3_t spotdir;
float spotcone; // cosine of spotlight cone angle (or 0 if not a spotlight)
+ float distbias;
int style;
int numleafs; // used only for loading calculations, number of leafs this shines on
}