]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
surfvertex_t is gone, in it's place are non-interleaved arrays, which keeps things...
[xonotic/darkplaces.git] / model_brush.h
index cd53901daf7d529730061e70d05bcfe3b5b52164..36d0a605c10540ca983fc6565c4832076b098a16 100644 (file)
@@ -108,21 +108,6 @@ typedef struct
 }
 mtexinfo_t;
 
-typedef struct surfvertex_s
-{
-       // position
-       float v[3];
-       // offset into lightmap (used by vertex lighting)
-       int lightmapoffset;
-       // texture coordinates
-       float st[2];
-       // lightmap coordinates
-       float uv[2];
-       // detail texture coordinates
-       float ab[2];
-}
-surfvertex_t;
-
 // LordHavoc: replaces glpoly, triangle mesh
 typedef struct surfmesh_s
 {
@@ -130,7 +115,11 @@ typedef struct surfmesh_s
        struct surfmesh_s *chain;
        int numverts;
        int numtriangles;
-       surfvertex_t *vertex;
+       float *verts;
+       int *lightmapoffsets;
+       float *st;
+       float *uv;
+       float *ab;
        int *index;
 }
 surfmesh_t;