X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=meshqueue.h;h=68fa4d0da4ad84677070e904a012cf9bab52818e;hp=be2e3f084b1df875b617103751f585e0f84e2ac2;hb=2ca2a9595705a793c0f643c2f4fe13f1b8cf4b69;hpb=5d04684b45d2ebb6f28f7ab0d2563b1de9d713cc diff --git a/meshqueue.h b/meshqueue.h index be2e3f08..68fa4d0d 100644 --- a/meshqueue.h +++ b/meshqueue.h @@ -2,12 +2,11 @@ #ifndef MESHQUEUE_H #define MESHQUEUE_H -void R_MeshQueue_Init(void); -void R_MeshQueue_Add(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(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); +// VorteX: seems this value is hardcoded in other several defines as it's changing makes mess +#define MESHQUEUE_TRANSPARENT_BATCHSIZE 256 + void R_MeshQueue_BeginScene(void); -void R_MeshQueue_Render(void); +void R_MeshQueue_AddTransparent(dptransparentsortcategory_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); -void R_MeshQueue_EndScene(void); #endif