summaryrefslogtreecommitdiffstats
path: root/src/Render.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Render.hpp')
-rw-r--r--src/Render.hpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Render.hpp b/src/Render.hpp
index 87494fa..3ac76e3 100644
--- a/src/Render.hpp
+++ b/src/Render.hpp
@@ -11,6 +11,8 @@
#include "Event.hpp"
#include "Gal.hpp"
+class Gbuffer;
+class TextureFbCopy;
class RendererWorld;
class RmlRenderInterface;
class RmlSystemInterface;
@@ -35,12 +37,12 @@ class Render {
bool HasFocus=true;
float sensetivity = 0.1f;
bool isWireframe = false;
- std::shared_ptr<Gal::Framebuffer> framebuffer;
- std::shared_ptr<Gal::Texture> fbDepthStencil;
- std::shared_ptr<Gal::Texture> fbColor;
- std::shared_ptr<Gal::Pipeline> fbPipeline;
- std::shared_ptr<Gal::PipelineInstance> fbPipelineInstance;
- std::shared_ptr<Gal::Buffer> fbBuffer;
+ std::unique_ptr<TextureFbCopy> resizeTextureCopy;
+ std::unique_ptr<TextureFbCopy> fbTextureCopy;
+ std::shared_ptr<Gal::Texture> fbTextureColor;
+ std::shared_ptr<Gal::Texture> fbTextureDepthStencil;
+ std::shared_ptr<Gal::Framebuffer> fbTarget;
+ std::unique_ptr<Gbuffer> gbuffer;
EventListener listener;
std::string stateString;
std::unique_ptr<RmlRenderInterface> rmlRender;
@@ -49,6 +51,7 @@ class Render {
Rml::Context* rmlContext;
unsigned short sdlKeyMods = 0;
bool hideRml = false;
+ size_t renderBuff = 0;
void SetMouseCapture(bool IsCaptured);