Whitespace and comment cleanups.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-05-13 04:17:05 +00:00
parent c7ee39acbb
commit 4b758624a9
2 changed files with 20 additions and 26 deletions

View file

@ -43,15 +43,12 @@
#include "glquake.h" #include "glquake.h"
#include "r_shared.h" #include "r_shared.h"
/*
R_AnimateLight
*/
void void
R_AnimateLight (void) R_AnimateLight (void)
{ {
int i, j, k; int i, j, k;
//
// light animations // light animations
// 'm' is normal light, 'a' is no light, 'z' is double bright // 'm' is normal light, 'a' is no light, 'z' is double bright
i = (int) (cl.time * 10); i = (int) (cl.time * 10);
@ -67,10 +64,12 @@ R_AnimateLight (void)
} }
} }
/* /*
DYNAMIC LIGHTS BLEND RENDERING DYNAMIC LIGHTS BLEND RENDERING
*/ */
void void
AddLightBlend (float r, float g, float b, float a2) AddLightBlend (float r, float g, float b, float a2)
{ {
@ -86,6 +85,7 @@ AddLightBlend (float r, float g, float b, float a2)
//Con_Printf("AddLightBlend(): %4.2f %4.2f %4.2f %4.6f\n", v_blend[0], v_blend[1], v_blend[2], v_blend[3]); //Con_Printf("AddLightBlend(): %4.2f %4.2f %4.2f %4.6f\n", v_blend[0], v_blend[1], v_blend[2], v_blend[3]);
} }
float bubble_sintable[33], bubble_costable[33]; float bubble_sintable[33], bubble_costable[33];
void void
@ -105,6 +105,7 @@ R_InitBubble ()
} }
} }
void void
R_RenderDlight (dlight_t *light) R_RenderDlight (dlight_t *light)
{ {
@ -151,9 +152,7 @@ R_RenderDlight (dlight_t *light)
glEnd (); glEnd ();
} }
/*
R_RenderDlights
*/
void void
R_RenderDlights (void) R_RenderDlights (void)
{ {
@ -188,9 +187,7 @@ R_RenderDlights (void)
DYNAMIC LIGHTS DYNAMIC LIGHTS
*/ */
/*
R_MarkLights
*/
// LordHavoc: heavily modified, to eliminate unnecessary texture uploads, // LordHavoc: heavily modified, to eliminate unnecessary texture uploads,
// and support bmodel lighting better // and support bmodel lighting better
void void
@ -283,9 +280,7 @@ loc0:
} }
} }
/*
R_PushDlights
*/
void void
R_PushDlights (vec3_t entorigin) R_PushDlights (vec3_t entorigin)
{ {
@ -410,6 +405,7 @@ RecursiveLightPoint (mnode_t *node, vec3_t start, vec3_t end)
return RecursiveLightPoint (node->children[!side], mid, end); return RecursiveLightPoint (node->children[!side], mid, end);
} }
int int
R_LightPoint (vec3_t p) R_LightPoint (vec3_t p)
{ {

View file

@ -43,15 +43,13 @@
#include "glquake.h" #include "glquake.h"
#include "r_shared.h" #include "r_shared.h"
/*
R_AnimateLight
*/
void void
R_AnimateLight (void) R_AnimateLight (void)
{ {
int i, j, k; int i, j, k;
//
// light animations // light animations
// 'm' is normal light, 'a' is no light, 'z' is double bright // 'm' is normal light, 'a' is no light, 'z' is double bright
i = (int) (cl.time * 10); i = (int) (cl.time * 10);
@ -67,10 +65,12 @@ R_AnimateLight (void)
} }
} }
/* /*
DYNAMIC LIGHTS BLEND RENDERING DYNAMIC LIGHTS BLEND RENDERING
*/ */
void void
AddLightBlend (float r, float g, float b, float a2) AddLightBlend (float r, float g, float b, float a2)
{ {
@ -86,6 +86,7 @@ AddLightBlend (float r, float g, float b, float a2)
//Con_Printf("AddLightBlend(): %4.2f %4.2f %4.2f %4.6f\n", v_blend[0], v_blend[1], v_blend[2], v_blend[3]); //Con_Printf("AddLightBlend(): %4.2f %4.2f %4.2f %4.6f\n", v_blend[0], v_blend[1], v_blend[2], v_blend[3]);
} }
float bubble_sintable[33], bubble_costable[33]; float bubble_sintable[33], bubble_costable[33];
void void
@ -105,6 +106,7 @@ R_InitBubble ()
} }
} }
void void
R_RenderDlight (dlight_t *light) R_RenderDlight (dlight_t *light)
{ {
@ -151,9 +153,7 @@ R_RenderDlight (dlight_t *light)
glEnd (); glEnd ();
} }
/*
R_RenderDlights
*/
void void
R_RenderDlights (void) R_RenderDlights (void)
{ {
@ -188,9 +188,7 @@ R_RenderDlights (void)
DYNAMIC LIGHTS DYNAMIC LIGHTS
*/ */
/*
R_MarkLights
*/
// LordHavoc: heavily modified, to eliminate unnecessary texture uploads, // LordHavoc: heavily modified, to eliminate unnecessary texture uploads,
// and support bmodel lighting better // and support bmodel lighting better
void void
@ -283,9 +281,7 @@ loc0:
} }
} }
/*
R_PushDlights
*/
void void
R_PushDlights (vec3_t entorigin) R_PushDlights (vec3_t entorigin)
{ {
@ -311,6 +307,7 @@ R_PushDlights (vec3_t entorigin)
LIGHT SAMPLING LIGHT SAMPLING
*/ */
mplane_t *lightplane; mplane_t *lightplane;
vec3_t lightspot; vec3_t lightspot;
@ -410,6 +407,7 @@ RecursiveLightPoint (mnode_t *node, vec3_t start, vec3_t end)
return RecursiveLightPoint (node->children[!side], mid, end); return RecursiveLightPoint (node->children[!side], mid, end);
} }
int int
R_LightPoint (vec3_t p) R_LightPoint (vec3_t p)
{ {