X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=model_zymotic.h;h=ff3f4b3df181a821e03d29417f29e7fcae013dcf;hb=f218440b27f5e1030bdea7c9c85c3e44b5289068;hp=70ab0ab467311a315a4b8e9c38a4ee64f13f4b89;hpb=c3e9512dfee6129cc4a8a66b399ac9c60ced4462;p=xonotic%2Fdarkplaces.git diff --git a/model_zymotic.h b/model_zymotic.h index 70ab0ab4..ff3f4b3d 100644 --- a/model_zymotic.h +++ b/model_zymotic.h @@ -1,3 +1,4 @@ + typedef struct zymlump_s { int start; @@ -24,7 +25,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 +60,5 @@ typedef struct zymvertex_s float origin[3]; } zymvertex_t; + +extern void Mod_LoadZymoticModel (struct model_s *mod, void *buffer);