// called with a batch, so numsurfaces is always 1, and the surfacelist
// contains only a leaf number for coloring purposes
const mportal_t *portal = (mportal_t *)ent;
- qboolean isvis;
+ qbool isvis;
int i, numpoints;
float *v;
float vertex3f[POLYGONELEMENTS_MAXPOINTS*3];
}
}
-void R_View_WorldVisibility(qboolean forcenovis)
+void R_View_WorldVisibility(qbool forcenovis)
{
int i, j, *mark;
mleaf_t *leaf;
vec3_t lightmins;
vec3_t lightmaxs;
const unsigned char *pvs;
- qboolean svbsp_active;
- qboolean svbsp_insertoccluder;
- qboolean noocclusion; // avoids PVS culling
- qboolean frontsidecasting; // casts shadows from surfaces facing the light (otherwise ones facing away)
+ qbool svbsp_active;
+ qbool svbsp_insertoccluder;
+ qbool noocclusion; // avoids PVS culling
+ qbool frontsidecasting; // casts shadows from surfaces facing the light (otherwise ones facing away)
int numfrustumplanes;
const mplane_t *frustumplanes;
}
#define GETLIGHTINFO_MAXNODESTACK 4096
-static void R_Q1BSP_RecursiveGetLightInfo_BSP(r_q1bsp_getlightinfo_t *info, qboolean skipsurfaces)
+static void R_Q1BSP_RecursiveGetLightInfo_BSP(r_q1bsp_getlightinfo_t *info, qbool skipsurfaces)
{
// nodestack
mnode_t *nodestack[GETLIGHTINFO_MAXNODESTACK];
int surfaceindex;
int triangleindex, t;
int currentmaterialflags;
- qboolean castshadow;
+ qbool castshadow;
const int *e;
const vec_t *v[3];
float v2[3][3];
- qboolean insidebox;
- qboolean noocclusion = info->noocclusion;
- qboolean frontsidecasting = info->frontsidecasting;
- qboolean svbspactive = info->svbsp_active;
- qboolean svbspinsertoccluder = info->svbsp_insertoccluder;
+ qbool insidebox;
+ qbool noocclusion = info->noocclusion;
+ qbool frontsidecasting = info->frontsidecasting;
+ qbool svbspactive = info->svbsp_active;
+ qbool svbspinsertoccluder = info->svbsp_insertoccluder;
const int *leafsurfaceindices;
- qboolean addedtris;
+ qbool addedtris;
int i;
mportal_t *portal;
static float points[128][3];
int t;
int nodeleafindex;
int currentmaterialflags;
- qboolean castshadow;
- qboolean noocclusion = info->noocclusion;
- qboolean frontsidecasting = info->frontsidecasting;
+ qbool castshadow;
+ qbool noocclusion = info->noocclusion;
+ qbool frontsidecasting = info->frontsidecasting;
msurface_t *surface;
const int *e;
const vec_t *v[3];
}
}
-static void R_Q1BSP_CallRecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, qboolean use_svbsp)
+static void R_Q1BSP_CallRecursiveGetLightInfo(r_q1bsp_getlightinfo_t *info, qbool use_svbsp)
{
extern cvar_t r_shadow_usebihculling;
if (use_svbsp)
extern cvar_t r_shadow_sortsurfaces;
-void R_Mod_GetLightInfo(entity_render_t *ent, vec3_t relativelightorigin, float lightradius, vec3_t outmins, vec3_t outmaxs, int *outleaflist, unsigned char *outleafpvs, int *outnumleafspointer, int *outsurfacelist, unsigned char *outsurfacepvs, int *outnumsurfacespointer, unsigned char *outshadowtrispvs, unsigned char *outlighttrispvs, unsigned char *visitingleafpvs, int numfrustumplanes, const mplane_t *frustumplanes, qboolean noocclusion)
+void R_Mod_GetLightInfo(entity_render_t *ent, vec3_t relativelightorigin, float lightradius, vec3_t outmins, vec3_t outmaxs, int *outleaflist, unsigned char *outleafpvs, int *outnumleafspointer, int *outsurfacelist, unsigned char *outsurfacepvs, int *outnumsurfacespointer, unsigned char *outshadowtrispvs, unsigned char *outlighttrispvs, unsigned char *visitingleafpvs, int numfrustumplanes, const mplane_t *frustumplanes, qbool noocclusion)
{
r_q1bsp_getlightinfo_t info;
info.frontsidecasting = r_shadow_frontsidecasting.integer != 0;
R_FrameData_ReturnToMark();
}
-extern qboolean r_shadow_usingdeferredprepass;
+extern qbool r_shadow_usingdeferredprepass;
void R_Mod_DrawLight(entity_render_t *ent, int numsurfaces, const int *surfacelist, const unsigned char *lighttrispvs)
{
dp_model_t *model = ent->model;