]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - meshqueue.h
9a727f30ff110674d784baa014e11b56a61f4d3f
[xonotic/darkplaces.git] / meshqueue.h
1
2 #ifndef MESHQUEUE_H
3 #define MESHQUEUE_H
4
5 // VorteX: seems this value is hardcoded in other several defines as it's changing makes mess
6 #define MESHQUEUE_TRANSPARENT_BATCHSIZE 256
7
8 typedef enum meshqueue_sortcategory_e
9 {
10         MESHQUEUE_SORT_SKY,
11         MESHQUEUE_SORT_DISTANCE,
12         MESHQUEUE_SORT_HUD,
13 }
14 meshqueue_sortcategory_t;
15
16 void R_MeshQueue_BeginScene(void);
17 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);
18 void R_MeshQueue_RenderTransparent(void);
19
20 #endif