Rename FRenderer::ClearBuffer to SetClearColor

This commit is contained in:
Magnus Norddahl 2017-01-15 03:21:35 +01:00
parent f9175561bb
commit 42535b17f1
5 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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;

View file

@ -931,7 +931,7 @@ void R_SetupFrame (AActor *actor)
{
color = pr_hom();
}
Renderer->ClearBuffer(color);
Renderer->SetClearColor(color);
}
}

View file

@ -242,7 +242,7 @@ void FSoftwareRenderer::OnModeSet ()
RenderScene::Instance()->ScreenResized();
}
void FSoftwareRenderer::ClearBuffer(int color)
void FSoftwareRenderer::SetClearColor(int color)
{
RenderScene::Instance()->SetClearColor(color);
}

View file

@ -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;