]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
Rename qboolean to qbool
[xonotic/darkplaces.git] / gl_rsurf.c
index f7e070aabc23ce8e856b8861d31cd6f50b00c65a..413efdab8cf4df9d297a90547f6d537bbfc09264 100644 (file)
@@ -346,7 +346,7 @@ static void R_DrawPortal_Callback(const entity_render_t *ent, const rtlight_t *r
        // 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];
@@ -437,7 +437,7 @@ static void R_View_WorldVisibility_CullSurfaces(void)
        }
 }
 
-void R_View_WorldVisibility(qboolean forcenovis)
+void R_View_WorldVisibility(qbool forcenovis)
 {
        int i, j, *mark;
        mleaf_t *leaf;
@@ -704,10 +704,10 @@ typedef struct r_q1bsp_getlightinfo_s
        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;
 }
@@ -715,7 +715,7 @@ r_q1bsp_getlightinfo_t;
 
 #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];
@@ -733,17 +733,17 @@ static void R_Q1BSP_RecursiveGetLightInfo_BSP(r_q1bsp_getlightinfo_t *info, qboo
        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];
@@ -989,9 +989,9 @@ static void R_Q1BSP_RecursiveGetLightInfo_BIH(r_q1bsp_getlightinfo_t *info, cons
        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];
@@ -1109,7 +1109,7 @@ static void R_Q1BSP_RecursiveGetLightInfo_BIH(r_q1bsp_getlightinfo_t *info, cons
        }
 }
 
-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)
@@ -1211,7 +1211,7 @@ static int R_Q1BSP_GetLightInfo_comparefunc(const void *ap, const void *bp)
 
 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;
@@ -1404,7 +1404,7 @@ static void R_Q1BSP_DrawLight_TransparentCallback(const entity_render_t *ent, co
        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;