Statistics bumpmapping driver
This commit is contained in:
parent
501c6b67fb
commit
31d23ee16c
2 changed files with 6 additions and 0 deletions
|
@ -64,6 +64,7 @@ void GL_BindAdvanced(gltexture_t *tex) {
|
||||||
void Print_Tex_Cache_f(void);
|
void Print_Tex_Cache_f(void);
|
||||||
void R_ReloadShaders_f(void);
|
void R_ReloadShaders_f(void);
|
||||||
void ReloadTextures_f(void);
|
void ReloadTextures_f(void);
|
||||||
|
void ToggleStatistics_f(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
===============
|
===============
|
||||||
|
@ -94,6 +95,7 @@ void Draw_Init (void)
|
||||||
Cmd_AddCommand ("gl_texcache",Print_Tex_Cache_f);
|
Cmd_AddCommand ("gl_texcache",Print_Tex_Cache_f);
|
||||||
Cmd_AddCommand ("reloadTextures",ReloadTextures_f);
|
Cmd_AddCommand ("reloadTextures",ReloadTextures_f);
|
||||||
Cmd_AddCommand ("reloadShaders", R_ReloadShaders_f);
|
Cmd_AddCommand ("reloadShaders", R_ReloadShaders_f);
|
||||||
|
Cmd_AddCommand ("bumptatistics", ToggleStatistics_f);
|
||||||
|
|
||||||
// Load the console font
|
// Load the console font
|
||||||
char_texture = EasyTgaLoad("textures/system/charset.tga");
|
char_texture = EasyTgaLoad("textures/system/charset.tga");
|
||||||
|
|
|
@ -2736,6 +2736,8 @@ void R_RenderView (void)
|
||||||
float oldfogen;
|
float oldfogen;
|
||||||
int viewcont;
|
int viewcont;
|
||||||
|
|
||||||
|
BUMP_ResetStats();
|
||||||
|
|
||||||
if (r_norefresh.value)
|
if (r_norefresh.value)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -2840,4 +2842,6 @@ void R_RenderView (void)
|
||||||
//Draw a poly over the screen (underwater, slime, blood hit)
|
//Draw a poly over the screen (underwater, slime, blood hit)
|
||||||
R_DrawGlare() ;
|
R_DrawGlare() ;
|
||||||
R_PolyBlend ();
|
R_PolyBlend ();
|
||||||
|
|
||||||
|
BUMP_PrintStats();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue