]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - meshqueue.h
added r_transparent_sortsurfacesbynearest cvar (default 1), this
[xonotic/darkplaces.git] / meshqueue.h
index f54c4ce39e3e0320d12f2a230ebf4dd38ff39451..9a727f30ff110674d784baa014e11b56a61f4d3f 100644 (file)
@@ -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