]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_zymotic.h
Fix engine not starting on Windows if linked against SDL > 2.0.5
[xonotic/darkplaces.git] / model_zymotic.h
index 70ab0ab467311a315a4b8e9c38a4ee64f13f4b89..d43f72c505f2586b989e58dacfe8c9092fa2cdef 100644 (file)
@@ -1,3 +1,7 @@
+
+#ifndef MODEL_ZYMOTIC_H
+#define MODEL_ZYMOTIC_H
+
 typedef struct zymlump_s
 {
        int start;
 typedef struct zymlump_s
 {
        int start;
@@ -24,7 +28,7 @@ typedef struct zymtype1header_s
        zymlump_t lump_vertbonecounts; // int vertbonecounts[numvertices]; // how many bones influence each vertex (separate mainly to make this compress better)
        zymlump_t lump_verts; // zymvertex_t vert[numvertices]; // see vertex struct
        zymlump_t lump_texcoords; // float texcoords[numvertices][2];
        zymlump_t lump_vertbonecounts; // int vertbonecounts[numvertices]; // how many bones influence each vertex (separate mainly to make this compress better)
        zymlump_t lump_verts; // zymvertex_t vert[numvertices]; // see vertex struct
        zymlump_t lump_texcoords; // float texcoords[numvertices][2];
-       zymlump_t lump_render; // int renderlist[rendersize]; // sorted by shader with run lengths (int shader, count), each run can be used with glDrawElements (each triangle is 3 int indices)
+       zymlump_t lump_render; // int renderlist[rendersize]; // sorted by shader with run lengths (int count), shaders are sequentially used, each run can be used with glDrawElements (each triangle is 3 int indices)
        zymlump_t lump_shaders; // char shadername[numshaders][32]; // shaders used on this model
        zymlump_t lump_trizone; // byte trizone[numtris]; // see trizone explanation
 }
        zymlump_t lump_shaders; // char shadername[numshaders][32]; // shaders used on this model
        zymlump_t lump_trizone; // byte trizone[numtris]; // see trizone explanation
 }
@@ -59,3 +63,6 @@ typedef struct zymvertex_s
        float origin[3];
 }
 zymvertex_t;
        float origin[3];
 }
 zymvertex_t;
+
+#endif
+