]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
improved/modified q1bsp surfmesh stuff for more general use (to make q3bsp able to...
[xonotic/darkplaces.git] / model_brush.h
index f04ab606bb078ee515a3948d8759511a845cc1f0..ddc4082a15d99b0827bebd97aaf2ae0e6972ea0e 100644 (file)
@@ -124,24 +124,6 @@ typedef struct
 }
 mtexinfo_t;
 
-// LordHavoc: replaces glpoly, triangle mesh
-typedef struct surfmesh_s
-{
-       int num_vertices; // number of vertices in the mesh
-       int num_triangles; // number of triangles in the mesh
-       float *data_vertex3f; // float[verts*3] vertex locations
-       float *data_svector3f; // float[verts*3] direction of 'S' (right) texture axis for each vertex
-       float *data_tvector3f; // float[verts*3] direction of 'T' (down) texture axis for each vertex
-       float *data_normal3f; // float[verts*3] direction of 'R' (out) texture axis for each vertex
-       int *data_lightmapoffsets; // index into surface's lightmap samples for vertex lighting
-       float *data_texcoordtexture2f; // float[verts*2] texcoords for surface texture
-       float *data_texcoordlightmap2f; // float[verts*2] texcoords for lightmap texture
-       float *data_texcoorddetail2f; // float[verts*2] texcoords for detail texture
-       int *data_element3i; // int[tris*3] triangles of the mesh, 3 indices into vertex arrays for each
-       int *data_neighbor3i; // int[tris*3] neighboring triangle on each edge (-1 if none)
-}
-surfmesh_t;
-
 typedef struct msurface_s
 {
        // bounding box for onscreen checks