mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
R_Mirror-related cleanups, and some whitespace.
This commit is contained in:
parent
ac0d2738c1
commit
820fcbb8d2
2 changed files with 4 additions and 22 deletions
|
@ -43,5 +43,6 @@ extern int mirrortexturenum; // quake texturenum, not gltexturenum
|
|||
void GL_BuildLightmaps (struct model_s **models, int num_models);
|
||||
void R_DrawBrushModel (struct entity_s *e);
|
||||
void R_DrawWorld (void);
|
||||
void R_RenderBrushPoly (msurface_t *fa);
|
||||
|
||||
#endif // __QF_GL_rsurf_h
|
||||
|
|
|
@ -112,7 +112,6 @@ vec3_t shadecolor; // Ender (Extend) Colormod
|
|||
float modelalpha; // Ender (Extend) Alpha
|
||||
|
||||
void R_MarkLeaves (void);
|
||||
//qboolean R_CullBlocked (vec3_t mins, vec3_t maxs, vec3_t org);
|
||||
|
||||
|
||||
void
|
||||
|
@ -987,26 +986,16 @@ R_RenderScene (void)
|
|||
r_time1 = Sys_DoubleTime ();
|
||||
|
||||
R_SetupFrame ();
|
||||
|
||||
R_SetFrustum ();
|
||||
|
||||
R_SetupGL ();
|
||||
|
||||
R_MarkLeaves (); // done here so we know if we're in water
|
||||
|
||||
R_PushDlights (vec3_origin);
|
||||
|
||||
R_DrawWorld (); // adds static entities to the list
|
||||
|
||||
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
||||
|
||||
R_DrawEntitiesOnList ();
|
||||
|
||||
R_RenderDlights ();
|
||||
}
|
||||
|
||||
void R_RenderBrushPoly (msurface_t *fa);
|
||||
|
||||
void
|
||||
R_Mirror (void)
|
||||
{
|
||||
|
@ -1076,33 +1065,25 @@ R_RenderView (void)
|
|||
{
|
||||
if (r_norefresh->int_val)
|
||||
return;
|
||||
|
||||
if (!r_worldentity.model)
|
||||
Sys_Error ("R_RenderView: NULL worldmodel");
|
||||
|
||||
// qfglFinish ();
|
||||
|
||||
mirror = false;
|
||||
|
||||
R_Clear ();
|
||||
|
||||
// render normal view
|
||||
R_RenderScene ();
|
||||
|
||||
R_DrawWaterSurfaces ();
|
||||
|
||||
R_UpdateFires ();
|
||||
|
||||
R_DrawParticles ();
|
||||
|
||||
R_DrawViewModel ();
|
||||
R_DrawWaterSurfaces ();
|
||||
R_UpdateFires ();
|
||||
R_DrawParticles ();
|
||||
|
||||
// render mirror view
|
||||
R_Mirror ();
|
||||
|
||||
if (r_timegraph->int_val)
|
||||
R_TimeGraph ();
|
||||
|
||||
if (r_zgraph->int_val)
|
||||
R_ZGraph ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue