X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=model_zymotic.h;h=d43f72c505f2586b989e58dacfe8c9092fa2cdef;hp=70ab0ab467311a315a4b8e9c38a4ee64f13f4b89;hb=7305affaa1bdcfa17d27e7e155ed850143753fcf;hpb=c3e9512dfee6129cc4a8a66b399ac9c60ced4462 diff --git a/model_zymotic.h b/model_zymotic.h index 70ab0ab4..d43f72c5 100644 --- a/model_zymotic.h +++ b/model_zymotic.h @@ -1,3 +1,7 @@ + +#ifndef MODEL_ZYMOTIC_H +#define MODEL_ZYMOTIC_H + 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_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 } @@ -59,3 +63,6 @@ typedef struct zymvertex_s float origin[3]; } zymvertex_t; + +#endif +