summaryrefslogtreecommitdiffstats
path: root/src/Render.hpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-11-19 20:09:45 +0100
committerLaG1924 <lag1924@gmail.com>2021-11-19 20:09:45 +0100
commitb837000b88e34cf297380c99ea608a1517fdf26d (patch)
tree7ea1e1e389150cd8430b9a2fdc81e8a79c02b0fb /src/Render.hpp
parentChanged TextureAtlas to Gal (diff)
downloadAltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.tar
AltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.tar.gz
AltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.tar.bz2
AltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.tar.lz
AltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.tar.xz
AltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.tar.zst
AltCraft-b837000b88e34cf297380c99ea608a1517fdf26d.zip
Diffstat (limited to 'src/Render.hpp')
-rw-r--r--src/Render.hpp25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/Render.hpp b/src/Render.hpp
index 9a9feee..cf9b9f9 100644
--- a/src/Render.hpp
+++ b/src/Render.hpp
@@ -10,9 +10,9 @@
#include "Utility.hpp"
#include "Renderer.hpp"
#include "Event.hpp"
+#include "Gal.hpp"
class RendererWorld;
-class Framebuffer;
class RmlRenderInterface;
class RmlSystemInterface;
class RmlFileInterface;
@@ -35,16 +35,21 @@ class Render {
std::map<SDL_Scancode, bool> isKeyPressed;
bool HasFocus=true;
float sensetivity = 0.1f;
- bool isWireframe = false;
- std::unique_ptr<Framebuffer> framebuffer;
- EventListener listener;
+ 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;
+ EventListener listener;
std::string stateString;
- std::unique_ptr<RmlRenderInterface> rmlRender;
- std::unique_ptr<RmlSystemInterface> rmlSystem;
- std::unique_ptr<RmlFileInterface> rmlFile;
- Rml::Context* rmlContext;
- unsigned short sdlKeyMods = 0;
- bool hideRml = false;
+ std::unique_ptr<RmlRenderInterface> rmlRender;
+ std::unique_ptr<RmlSystemInterface> rmlSystem;
+ std::unique_ptr<RmlFileInterface> rmlFile;
+ Rml::Context* rmlContext;
+ unsigned short sdlKeyMods = 0;
+ bool hideRml = false;
void SetMouseCapture(bool IsCaptured);