- consolidated the 3 virtually identical instances of DrawScene and moved the function to HWDrawInfo.
The only backend dependent call in there, ambient occlusion, has been made a virtual of DFrameBuffer.
This commit is contained in:
parent
90585c4931
commit
c203df5edb
12 changed files with 96 additions and 201 deletions
|
|
@ -47,6 +47,7 @@ public:
|
|||
void BeginFrame() override;
|
||||
void BlurScene(float amount) override;
|
||||
void PostProcessScene(int fixedcm, const std::function<void()> &afterBloomDrawEndScene2D) override;
|
||||
void AmbientOccludeScene(float m5) override;
|
||||
|
||||
IHardwareTexture *CreateHardwareTexture() override;
|
||||
FModelRenderer *CreateModelRenderer(int mli) override;
|
||||
|
|
@ -71,7 +72,6 @@ public:
|
|||
private:
|
||||
sector_t *RenderViewpoint(FRenderViewpoint &mainvp, AActor * camera, IntRect * bounds, float fov, float ratio, float fovratio, bool mainview, bool toscreen);
|
||||
void RenderTextureView(FCanvasTexture *tex, AActor *Viewpoint, double FOV);
|
||||
void DrawScene(HWDrawInfo *di, int drawmode);
|
||||
void UpdateShadowMap();
|
||||
|
||||
void CheckCanvas();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue