X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=model_shared.h;h=cf5e02dc1ec4450210fceb52f9767a01ca738caf;hp=bb0cd540cbd597fa4bbde15908bb84ed3099445c;hb=b12a31a10d99cf06fa6e3b2a098b7af69dec41a6;hpb=b0f58d418242fbf593e98ba88ff2b1a2a9ff89e8 diff --git a/model_shared.h b/model_shared.h index bb0cd540..cf5e02dc 100644 --- a/model_shared.h +++ b/model_shared.h @@ -40,7 +40,7 @@ m*_t structures are in-memory */ -typedef enum modtype_e {mod_invalid, mod_brushq1, mod_sprite, mod_alias, mod_brushq2, mod_brushq3, mod_obj, mod_null} modtype_t; +typedef enum modtype_e {mod_invalid, mod_brushq1, mod_sprite, mod_alias, mod_brushq2, mod_brushq3, mod_brushhl2, mod_obj, mod_null} modtype_t; typedef struct animscene_s { @@ -404,6 +404,9 @@ typedef struct msurface_s int num_firstcollisiontriangle; // q3bsp only int num_collisiontriangles; // number of triangles (if surface has collisions enabled) int num_collisionvertices; // number of vertices referenced by collision triangles (if surface has collisions enabled) + + // used by Mod_Mesh_Finalize when building sortedmodelsurfaces + qbool included; } msurface_t; @@ -709,8 +712,6 @@ void Mod_Mesh_Destroy(model_t *mod); void Mod_Mesh_Reset(model_t *mod); texture_t *Mod_Mesh_GetTexture(model_t *mod, const char *name, int defaultdrawflags, int defaulttexflags, int defaultmaterialflags); msurface_t *Mod_Mesh_AddSurface(model_t *mod, texture_t *tex, qbool batchwithprevioussurface); -void Mod_Mesh_CheckResize_Vertex(model_t *mod, msurface_t *surf); -int Mod_Mesh_AddVertex(model_t *mod, msurface_t *surf, float x, float y, float z, float nx, float ny, float nz, float s, float t, float u, float v, float r, float g, float b, float a); int Mod_Mesh_IndexForVertex(model_t *mod, msurface_t *surf, float x, float y, float z, float nx, float ny, float nz, float s, float t, float u, float v, float r, float g, float b, float a); void Mod_Mesh_AddTriangle(model_t *mod, msurface_t *surf, int e0, int e1, int e2); void Mod_Mesh_Validate(model_t *mod);