From 42535b17f1f66604e645fbe82f1e5533d7d4eebc Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 15 Jan 2017 03:21:35 +0100 Subject: [PATCH] Rename FRenderer::ClearBuffer to SetClearColor --- src/gl/scene/gl_scene.cpp | 4 ++-- src/r_renderer.h | 2 +- src/r_utility.cpp | 2 +- src/swrenderer/r_swrenderer.cpp | 2 +- src/swrenderer/r_swrenderer.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 7f1432e14..9a9a994bd 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -1013,7 +1013,7 @@ struct FGLInterface : public FRenderer bool RequireGLNodes() override; int GetMaxViewPitch(bool down) override; - void ClearBuffer(int color) override; + void SetClearColor(int color) override; void Init() override; }; @@ -1263,7 +1263,7 @@ int FGLInterface::GetMaxViewPitch(bool down) // //=========================================================================== -void FGLInterface::ClearBuffer(int color) +void FGLInterface::SetClearColor(int color) { PalEntry pe = GPalette.BaseColors[color]; GLRenderer->mSceneClearColor[0] = pe.r / 255.f; diff --git a/src/r_renderer.h b/src/r_renderer.h index 54e6d9dac..9f1e94428 100644 --- a/src/r_renderer.h +++ b/src/r_renderer.h @@ -53,7 +53,7 @@ struct FRenderer virtual int GetMaxViewPitch(bool down) = 0; // return value is in plain degrees virtual void OnModeSet () {} - virtual void ClearBuffer(int color) = 0; + virtual void SetClearColor(int color) = 0; virtual void Init() = 0; virtual void RenderTextureView (FCanvasTexture *tex, AActor *viewpoint, int fov) = 0; virtual sector_t *FakeFlat(sector_t *sec, sector_t *tempsec, int *floorlightlevel, int *ceilinglightlevel) = 0; diff --git a/src/r_utility.cpp b/src/r_utility.cpp index 34ad10a6e..025b94804 100644 --- a/src/r_utility.cpp +++ b/src/r_utility.cpp @@ -931,7 +931,7 @@ void R_SetupFrame (AActor *actor) { color = pr_hom(); } - Renderer->ClearBuffer(color); + Renderer->SetClearColor(color); } } diff --git a/src/swrenderer/r_swrenderer.cpp b/src/swrenderer/r_swrenderer.cpp index e64b7f0b7..db0ede2e6 100644 --- a/src/swrenderer/r_swrenderer.cpp +++ b/src/swrenderer/r_swrenderer.cpp @@ -242,7 +242,7 @@ void FSoftwareRenderer::OnModeSet () RenderScene::Instance()->ScreenResized(); } -void FSoftwareRenderer::ClearBuffer(int color) +void FSoftwareRenderer::SetClearColor(int color) { RenderScene::Instance()->SetClearColor(color); } diff --git a/src/swrenderer/r_swrenderer.h b/src/swrenderer/r_swrenderer.h index aedff6214..c4d81c1d0 100644 --- a/src/swrenderer/r_swrenderer.h +++ b/src/swrenderer/r_swrenderer.h @@ -30,7 +30,7 @@ struct FSoftwareRenderer : public FRenderer bool RequireGLNodes() override; void OnModeSet() override; - void ClearBuffer(int color) override; + void SetClearColor(int color) override; void Init() override; void RenderTextureView (FCanvasTexture *tex, AActor *viewpoint, int fov) override; sector_t *FakeFlat(sector_t *sec, sector_t *tempsec, int *floorlightlevel, int *ceilinglightlevel) override;