X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=misc%2Fsource%2Fdarkplaces-src%2Fmeshqueue.h;h=9a727f30ff110674d784baa014e11b56a61f4d3f;hb=8f793cf925328d4b29ea000061e8456cfde539b9;hp=f54c4ce39e3e0320d12f2a230ebf4dd38ff39451;hpb=07859c32a786953411bcb0eddb0ba4befa34cfd6;p=voretournament%2Fvoretournament.git diff --git a/misc/source/darkplaces-src/meshqueue.h b/misc/source/darkplaces-src/meshqueue.h index f54c4ce3..9a727f30 100644 --- a/misc/source/darkplaces-src/meshqueue.h +++ b/misc/source/darkplaces-src/meshqueue.h @@ -5,8 +5,16 @@ // VorteX: seems this value is hardcoded in other several defines as it's changing makes mess #define MESHQUEUE_TRANSPARENT_BATCHSIZE 256 +typedef enum meshqueue_sortcategory_e +{ + MESHQUEUE_SORT_SKY, + MESHQUEUE_SORT_DISTANCE, + MESHQUEUE_SORT_HUD, +} +meshqueue_sortcategory_t; + void R_MeshQueue_BeginScene(void); -void R_MeshQueue_AddTransparent(const vec3_t center, void (*callback)(const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfacelist), const entity_render_t *ent, int surfacenumber, const rtlight_t *rtlight); +void R_MeshQueue_AddTransparent(meshqueue_sortcategory_t category, const vec3_t center, void (*callback)(const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfacelist), const entity_render_t *ent, int surfacenumber, const rtlight_t *rtlight); void R_MeshQueue_RenderTransparent(void); #endif