]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - render.h
moved mod_shared.c detail texture and distortion texture stuff to gl_rmain.c (renamed...
[xonotic/darkplaces.git] / render.h
index f0169a8fa3625ea0b4272835c80fffaf1b58b709..1a46caad5d92c47a15c853c81f28890edcf3e346 100644 (file)
--- a/render.h
+++ b/render.h
@@ -76,6 +76,8 @@ extern cvar_t r_lerpmodels;
 extern cvar_t r_waterscroll;
 extern cvar_t r_watershader;
 
+extern cvar_t developer_texturelogging;
+
 // useful functions for rendering
 void R_ModulateColors(float *in, float *out, int verts, float r, float g, float b);
 void R_FillColors(float *out, int verts, float r, float g, float b, float a);
@@ -149,7 +151,6 @@ void R_DrawExplosions(void);
 #define gl_alpha_format 4
 
 int R_CullBox(const vec3_t mins, const vec3_t maxs);
-#define VIS_CullBox(mins,maxs) (R_CullBox((mins), (maxs)) || (r_refdef.worldmodel && r_refdef.worldmodel->brush.BoxTouchingPVS && !r_refdef.worldmodel->brush.BoxTouchingPVS(r_refdef.worldmodel, r_pvsbits, (mins), (maxs))))
 
 extern qboolean fogenabled;
 extern vec3_t fogcolor;
@@ -174,6 +175,16 @@ extern cvar_t gl_dither;
 
 #include "r_light.h"
 
+extern rtexture_t *r_texture_blanknormalmap;
+extern rtexture_t *r_texture_white;
+extern rtexture_t *r_texture_black;
+extern rtexture_t *r_texture_notexture;
+extern rtexture_t *r_texture_whitecube;
+extern rtexture_t *r_texture_normalizationcube;
+#define NUM_DETAILTEXTURES 1
+extern rtexture_t *r_texture_detailtextures[NUM_DETAILTEXTURES];
+extern rtexture_t *r_texture_distorttexture[64];
+
 void R_TimeReport(char *name);
 void R_TimeReport_Start(void);
 void R_TimeReport_End(void);