]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
Fix a prvm_int_t variable that was being passed directly to printf.
[xonotic/darkplaces.git] / client.h
index 6be9d5a5e3e95041472b6d9af3baa2c6c029f49c..67013ddf6f11736a922407c398f9cfa78decf998 100644 (file)
--- a/client.h
+++ b/client.h
@@ -64,6 +64,8 @@ typedef enum r_stat_e
        r_stat_bloom,
        r_stat_bloom_copypixels,
        r_stat_bloom_drawpixels,
+       r_stat_rendertargets_used,
+       r_stat_rendertargets_pixels,
        r_stat_indexbufferuploadcount,
        r_stat_indexbufferuploadsize,
        r_stat_vertexbufferuploadcount,
@@ -1813,6 +1815,12 @@ typedef struct r_refdef_view_s
        vec3_t frustumcorner[4];
        // if turned off it renders an ortho view
        int useperspective;
+       // allows visibility culling based on the view origin (e.g. pvs and R_CanSeeBox)
+       // this is turned off by:
+       // r_trippy
+       // !r_refdef.view.useperspective
+       // (sometimes) r_refdef.view.useclipplane
+       int usevieworiginculling;
        float ortho_x, ortho_y;
 
        // screen area to render in