mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-02 09:31:12 +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 GL_BuildLightmaps (struct model_s **models, int num_models);
|
||||||
void R_DrawBrushModel (struct entity_s *e);
|
void R_DrawBrushModel (struct entity_s *e);
|
||||||
void R_DrawWorld (void);
|
void R_DrawWorld (void);
|
||||||
|
void R_RenderBrushPoly (msurface_t *fa);
|
||||||
|
|
||||||
#endif // __QF_GL_rsurf_h
|
#endif // __QF_GL_rsurf_h
|
||||||
|
|
|
@ -112,7 +112,6 @@ vec3_t shadecolor; // Ender (Extend) Colormod
|
||||||
float modelalpha; // Ender (Extend) Alpha
|
float modelalpha; // Ender (Extend) Alpha
|
||||||
|
|
||||||
void R_MarkLeaves (void);
|
void R_MarkLeaves (void);
|
||||||
//qboolean R_CullBlocked (vec3_t mins, vec3_t maxs, vec3_t org);
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -987,26 +986,16 @@ R_RenderScene (void)
|
||||||
r_time1 = Sys_DoubleTime ();
|
r_time1 = Sys_DoubleTime ();
|
||||||
|
|
||||||
R_SetupFrame ();
|
R_SetupFrame ();
|
||||||
|
|
||||||
R_SetFrustum ();
|
R_SetFrustum ();
|
||||||
|
|
||||||
R_SetupGL ();
|
R_SetupGL ();
|
||||||
|
|
||||||
R_MarkLeaves (); // done here so we know if we're in water
|
R_MarkLeaves (); // done here so we know if we're in water
|
||||||
|
|
||||||
R_PushDlights (vec3_origin);
|
R_PushDlights (vec3_origin);
|
||||||
|
|
||||||
R_DrawWorld (); // adds static entities to the list
|
R_DrawWorld (); // adds static entities to the list
|
||||||
|
|
||||||
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
S_ExtraUpdate (); // don't let sound get messed up if going slow
|
||||||
|
|
||||||
R_DrawEntitiesOnList ();
|
R_DrawEntitiesOnList ();
|
||||||
|
|
||||||
R_RenderDlights ();
|
R_RenderDlights ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void R_RenderBrushPoly (msurface_t *fa);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
R_Mirror (void)
|
R_Mirror (void)
|
||||||
{
|
{
|
||||||
|
@ -1076,33 +1065,25 @@ R_RenderView (void)
|
||||||
{
|
{
|
||||||
if (r_norefresh->int_val)
|
if (r_norefresh->int_val)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!r_worldentity.model)
|
if (!r_worldentity.model)
|
||||||
Sys_Error ("R_RenderView: NULL worldmodel");
|
Sys_Error ("R_RenderView: NULL worldmodel");
|
||||||
|
|
||||||
// qfglFinish ();
|
|
||||||
|
|
||||||
mirror = false;
|
mirror = false;
|
||||||
|
|
||||||
R_Clear ();
|
R_Clear ();
|
||||||
|
|
||||||
// render normal view
|
// render normal view
|
||||||
R_RenderScene ();
|
R_RenderScene ();
|
||||||
|
|
||||||
R_DrawWaterSurfaces ();
|
|
||||||
|
|
||||||
R_UpdateFires ();
|
|
||||||
|
|
||||||
R_DrawParticles ();
|
|
||||||
|
|
||||||
R_DrawViewModel ();
|
R_DrawViewModel ();
|
||||||
|
R_DrawWaterSurfaces ();
|
||||||
|
R_UpdateFires ();
|
||||||
|
R_DrawParticles ();
|
||||||
|
|
||||||
// render mirror view
|
// render mirror view
|
||||||
R_Mirror ();
|
R_Mirror ();
|
||||||
|
|
||||||
if (r_timegraph->int_val)
|
if (r_timegraph->int_val)
|
||||||
R_TimeGraph ();
|
R_TimeGraph ();
|
||||||
|
|
||||||
if (r_zgraph->int_val)
|
if (r_zgraph->int_val)
|
||||||
R_ZGraph ();
|
R_ZGraph ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue