From d2c157262a1e7454c651265979bcfb4c36e7d7c5 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 11 Mar 2024 12:40:18 +0100 Subject: [PATCH] those can all be static --- src/hardware/hw_glob.h | 2 -- src/hardware/hw_main.c | 10 +++++----- src/hardware/hw_main.h | 7 ------- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/src/hardware/hw_glob.h b/src/hardware/hw_glob.h index 742fd82ae..a5b66a429 100644 --- a/src/hardware/hw_glob.h +++ b/src/hardware/hw_glob.h @@ -92,8 +92,6 @@ void HWR_AddTransparentFloor(lumpnum_t lumpnum, extrasubsector_t *xsub, boolean void HWR_AddTransparentPolyobjectFloor(lumpnum_t lumpnum, polyobj_t *polysector, boolean isceiling, fixed_t fixedheight, INT32 lightlevel, INT32 alpha, sector_t *FOFSector, FBITFIELD blend, extracolormap_t *planecolormap); -void HWR_RenderDrawNodes(void); - // -------- // hw_shaders.c // -------- diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 46c3c4267..91f322b27 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -2542,7 +2542,7 @@ static boolean CheckClip(sector_t * afrontsector, sector_t * abacksector) // HWR_AddLine // Clips the given segment and adds any visible pieces to the line list. -void HWR_AddLine(seg_t *line) +static void HWR_AddLine(seg_t *line) { angle_t angle1, angle2; @@ -2690,7 +2690,7 @@ doaddline: // // modified to use local variables -boolean HWR_CheckBBox(const fixed_t *bspcoord) +static boolean HWR_CheckBBox(const fixed_t *bspcoord) { INT32 boxpos; fixed_t px1, py1, px2, py2; @@ -3115,7 +3115,7 @@ static boolean HWR_DoCulling(line_t *cullheight, line_t *viewcullheight, float v // : Add sprites of things in sector. // : Draw one or more line segments. // -----------------+ -void HWR_Subsector(size_t num) +static void HWR_Subsector(size_t num) { INT16 count; seg_t *line; @@ -3488,7 +3488,7 @@ static boolean HWR_PortalCheckBBox(const fixed_t *bspcoord) // traversing subtree recursively. // Just call with BSP root. -void HWR_RenderBSPNode(INT32 bspnum) +static void HWR_RenderBSPNode(INT32 bspnum) { ps_numbspcalls.value.i++; @@ -4583,7 +4583,7 @@ static int CompareDrawNodePlanes(const void *p1, const void *p2) // // HWR_RenderDrawNodes // Sorts and renders the list of drawnodes for the scene being rendered. -void HWR_RenderDrawNodes(void) +static void HWR_RenderDrawNodes(void) { INT32 i = 0, run_start = 0; diff --git a/src/hardware/hw_main.h b/src/hardware/hw_main.h index 16b09be8d..3530c2915 100644 --- a/src/hardware/hw_main.h +++ b/src/hardware/hw_main.h @@ -136,13 +136,6 @@ void HWR_DrawSkyBackground(float fpov); void HWR_AddPolyObjectSegs(void); -// hw_main.c: BSP -void HWR_RenderBSPNode(INT32 bspnum); -void HWR_Subsector(size_t num); -void HWR_AddLine(seg_t *line); -boolean HWR_CheckBBox(const fixed_t *bspcoord); -void HWR_RenderDrawNodes(void); - // hw_main.c: Sprites void HWR_AddSprites(sector_t *sec); void HWR_ProjectSprite(mobj_t *thing);