4typedef struct meshqueue_s
6 struct meshqueue_s *
next;
64 int i, hashindex, maxhashindex, batchnumsurfaces;
114 hashindex = maxhashindex;
125 batchnumsurfaces = 0;
128 for (
i = maxhashindex;
i >= 0;
i--)
136 if (batchnumsurfaces)
137 callback(ent, rtlight, batchnumsurfaces, batchsurfaceindex);
138 batchnumsurfaces = 0;
147 if (batchnumsurfaces)
148 callback(ent, rtlight, batchnumsurfaces, batchsurfaceindex);
void Cvar_SetValueQuick(cvar_t *var, float value)
cvar_t r_transparent_sortmaxdist
cvar_t r_transparent_useplanardistance
cvar_t r_transparent_sortarraysize
cvar_t r_transparent_sortmindist
#define bound(min, num, max)
#define VectorDistance(a, b)
void R_MeshQueue_BeginScene(void)
meshqueue_t ** trans_hash
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)
meshqueue_t *** trans_hashpointer
void R_MeshQueue_RenderTransparent(void)
#define MESHQUEUE_TRANSPARENT_BATCHSIZE
dptransparentsortcategory_t
@ TRANSPARENTSORT_DISTANCE
mempool_t * permanentmempool
void(* callback)(const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfaceindices)
const entity_render_t * ent
dptransparentsortcategory_t category
const rtlight_t * rtlight
struct meshqueue_s * next
#define Mem_Alloc(pool, size)