Skip to content

Commit

Permalink
Remove more dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Gneiting committed Dec 1, 2017
1 parent 8320190 commit 910aa43
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 114 deletions.
5 changes: 0 additions & 5 deletions Quake/glquake.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ void GL_DeleteBModelVertexBuffer (void);
void GL_BuildBModelVertexBuffer (void);
void GLMesh_LoadVertexBuffers (void);
void GLMesh_DeleteVertexBuffers (void);
void R_RebuildAllLightmaps (void);

int R_LightPoint (vec3_t p);

Expand All @@ -347,10 +346,6 @@ void R_BuildLightMap (msurface_t *surf, byte *dest, int stride);
void R_RenderDynamicLightmaps (msurface_t *fa);
void R_UploadLightmaps (void);

void R_DrawAliasModel_ShowTris (entity_t *e);
void R_DrawParticles_ShowTris (void);

void GL_DrawAliasShadow (entity_t *e);
void DrawGLPoly (glpoly_t *p, float color[3], float alpha);
void GL_MakeAliasModelDisplayLists (qmodel_t *m, aliashdr_t *hdr);

Expand Down
21 changes: 0 additions & 21 deletions Quake/r_alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,24 +442,3 @@ void R_DrawAliasModel (entity_t *e)
#define SHADOW_VSCALE 0 //0=completely flat
#define SHADOW_HEIGHT 0.1 //how far above the floor to render the shadow
//johnfitz

/*
=============
GL_DrawAliasShadow -- johnfitz -- rewritten
TODO: orient shadow onto "lightplane" (a global mplane_t*)
=============
*/
void GL_DrawAliasShadow (entity_t *e)
{
}

/*
=================
R_DrawAliasModel_ShowTris -- johnfitz
=================
*/
void R_DrawAliasModel_ShowTris (entity_t *e)
{
}

42 changes: 0 additions & 42 deletions Quake/r_brush.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,45 +897,3 @@ void R_UploadLightmaps (void)
R_UploadLightmap(lmap, lightmap_textures[lmap]);
}
}

/*
================
R_RebuildAllLightmaps -- johnfitz
================
*/
void R_RebuildAllLightmaps (void)
{
/*int i, j;
qmodel_t *mod;
msurface_t *fa;
byte *base;
if (!cl.worldmodel) // is this the correct test?
return;
//for each surface in each model, rebuild lightmap with new scale
for (i=1; i<MAX_MODELS; i++)
{
if (!(mod = cl.model_precache[i]))
continue;
fa = &mod->surfaces[mod->firstmodelsurface];
for (j=0; j<mod->nummodelsurfaces; j++, fa++)
{
if (fa->flags & SURF_DRAWTILED)
continue;
base = lightmaps + fa->lightmaptexturenum*lightmap_bytes*BLOCK_WIDTH*BLOCK_HEIGHT;
base += fa->light_t * BLOCK_WIDTH * lightmap_bytes + fa->light_s * lightmap_bytes;
R_BuildLightMap (fa, base, BLOCK_WIDTH*lightmap_bytes);
}
}
//for each lightmap, upload it
for (i=0; i<MAX_LIGHTMAPS; i++)
{
if (!allocated[i][0])
break;
GL_Bind (lightmap_textures[i]);
glTexSubImage2D (GL_TEXTURE_2D, 0, 0, 0, BLOCK_WIDTH, BLOCK_HEIGHT, gl_lightmap_format,
GL_UNSIGNED_BYTE, lightmaps+i*BLOCK_WIDTH*BLOCK_HEIGHT*lightmap_bytes);
}*/
}
46 changes: 0 additions & 46 deletions Quake/r_part.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,49 +908,3 @@ void R_DrawParticles (void)
vkCmdBindVertexBuffers(vulkan_globals.command_buffer, 0, 1, &vertex_buffer, &vertex_buffer_offset);
vkCmdDraw(vulkan_globals.command_buffer, num_triangles * 3, 1, 0, 0);
}

/*
===============
R_DrawParticles_ShowTris -- johnfitz
===============
*/
void R_DrawParticles_ShowTris (void)
{
/*particle_t *p;
float scale;
vec3_t up, right, p_up, p_right, p_upright;
extern cvar_t r_particles;
if (!r_particles.value)
return;
VectorScale (vup, 1.5, up);
VectorScale (vright, 1.5, right);
{
glBegin (GL_TRIANGLES);
for (p=active_particles ; p ; p=p->next)
{
// hack a scale up to keep particles from disapearing
scale = (p->org[0] - r_origin[0]) * vpn[0]
+ (p->org[1] - r_origin[1]) * vpn[1]
+ (p->org[2] - r_origin[2]) * vpn[2];
if (scale < 20)
scale = 1 + 0.08; //johnfitz -- added .08 to be consistent
else
scale = 1 + scale * 0.004;
scale *= texturescalefactor; //compensate for apparent size of different particle textures
glVertex3fv (p->org);
VectorMA (p->org, scale, up, p_up);
glVertex3fv (p_up);
VectorMA (p->org, scale, right, p_right);
glVertex3fv (p_right);
}
glEnd ();
}*/
}

0 comments on commit 910aa43

Please sign in to comment.