Skip to content

Commit

Permalink
Remove some more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel Gneiting committed Nov 28, 2017
1 parent c890626 commit a56f0e7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 73 deletions.
1 change: 0 additions & 1 deletion Quake/draw.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ extern qpic_t *draw_disc; // also used on sbar

void Draw_Init (void);
void Draw_Character (int x, int y, int num);
void Draw_DebugChar (char num);
void Draw_Pic (int x, int y, qpic_t *pic, float alpha);
void Draw_TransPicTranslate (int x, int y, qpic_t *pic, int top, int bottom); //johnfitz -- more parameters
void Draw_ConsoleBackground (void); //johnfitz -- removed parameter int lines
Expand Down
4 changes: 0 additions & 4 deletions Quake/glquake.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,6 @@ void R_DrawSpriteModel (entity_t *e);

void R_DrawTextureChains_Water (qmodel_t *model, entity_t *ent, texchain_t chain);

void R_RenderDlights (void);
void GL_BuildLightmaps (void);
void GL_DeleteBModelVertexBuffer (void);
void GL_BuildBModelVertexBuffer (void);
Expand All @@ -348,13 +347,10 @@ void R_BuildLightMap (msurface_t *surf, byte *dest, int stride);
void R_RenderDynamicLightmaps (msurface_t *fa);
void R_UploadLightmaps (void);

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

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

Expand Down
19 changes: 0 additions & 19 deletions Quake/r_brush.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,6 @@ void DrawGLPoly (glpoly_t *p, float color[3], float alpha)
vkCmdDraw(vulkan_globals.command_buffer, numverts, 1, 0, 0);
}

/*
================
DrawGLTriangleFan -- johnfitz -- like DrawGLPoly but for r_showtris
================
*/
void DrawGLTriangleFan (glpoly_t *p)
{
/*float *v;
int i;
glBegin (GL_TRIANGLE_FAN);
v = p->verts[0];
for (i=0 ; i<p->numverts ; i++, v+= VERTEXSIZE)
{
glVertex3fv (v);
}
glEnd ();*/
}

/*
=============================================================
Expand Down
44 changes: 0 additions & 44 deletions Quake/r_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,37 +264,6 @@ void R_BuildLightmapChains (qmodel_t *model, texchain_t chain)
}
}

//==============================================================================
//
// DRAW CHAINS
//
//==============================================================================

/*
================
R_DrawTextureChains_ShowTris -- johnfitz
================
*/
void R_DrawTextureChains_ShowTris (qmodel_t *model, texchain_t chain)
{
int i;
msurface_t *s;
texture_t *t;

for (i=0 ; i<model->numtextures ; i++)
{
t = model->textures[i];
if (!t)
continue;

for (s = t->texturechains[chain]; s; s = s->texturechain)
if (!s->culled)
{
DrawGLTriangleFan (s->polys);
}
}
}

//==============================================================================
//
// VBO SUPPORT
Expand Down Expand Up @@ -596,16 +565,3 @@ void R_DrawWorld_Water (void)

R_DrawTextureChains_Water (cl.worldmodel, NULL, chain_world);
}

/*
=============
R_DrawWorld_ShowTris -- ericw -- moved from R_DrawTextureChains_ShowTris, which is no longer specific to the world.
=============
*/
void R_DrawWorld_ShowTris (void)
{
if (!r_drawworld_cheatsafe)
return;

R_DrawTextureChains_ShowTris (cl.worldmodel, chain_world);
}
5 changes: 0 additions & 5 deletions Quake/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ void SCR_LoadPics (void);
void SCR_UpdateScreen (void);


void SCR_SizeUp (void);
void SCR_SizeDown (void);
void SCR_BringDownConsole (void);
void SCR_CenterPrint (const char *str);

void SCR_BeginLoadingPlaque (void);
Expand All @@ -53,8 +50,6 @@ extern cvar_t scr_viewsize;

extern cvar_t scr_sbaralpha; //johnfitz

void SCR_UpdateWholeScreen (void);

//johnfitz -- stuff for 2d drawing control
typedef enum {
CANVAS_NONE,
Expand Down

0 comments on commit a56f0e7

Please sign in to comment.