X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=model_zymotic.h;h=02fead122b61033122ffd774c1663fd682344ef2;hb=b63e7923de09de541925afd34739f0fd27778e97;hp=70ab0ab467311a315a4b8e9c38a4ee64f13f4b89;hpb=c3e9512dfee6129cc4a8a66b399ac9c60ced4462;p=xonotic%2Fdarkplaces.git diff --git a/model_zymotic.h b/model_zymotic.h index 70ab0ab4..02fead12 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,8 @@ typedef struct zymvertex_s float origin[3]; } zymvertex_t; + +extern void Mod_ZYMOTICMODEL_Load(struct model_s *mod, void *buffer); + +#endif +