mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
Rename FRenderer::ClearBuffer to SetClearColor
This commit is contained in:
parent
f9175561bb
commit
42535b17f1
5 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -931,7 +931,7 @@ void R_SetupFrame (AActor *actor)
|
|||
{
|
||||
color = pr_hom();
|
||||
}
|
||||
Renderer->ClearBuffer(color);
|
||||
Renderer->SetClearColor(color);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -242,7 +242,7 @@ void FSoftwareRenderer::OnModeSet ()
|
|||
RenderScene::Instance()->ScreenResized();
|
||||
}
|
||||
|
||||
void FSoftwareRenderer::ClearBuffer(int color)
|
||||
void FSoftwareRenderer::SetClearColor(int color)
|
||||
{
|
||||
RenderScene::Instance()->SetClearColor(color);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue