diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2021-12-25 07:42:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-25 07:42:52 +0100 |
commit | 40421159568518bb7573903d14a2c69c64dead95 (patch) | |
tree | 15c830dce151bf0b427123efd214173742887e8e /src/Render.hpp | |
parent | Merge pull request #70 from LaG1924/ftr/build-3 (diff) | |
parent | Fixed missing APIENTRY linux build (diff) | |
download | AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.gz AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.bz2 AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.lz AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.xz AltCraft-40421159568518bb7573903d14a2c69c64dead95.tar.zst AltCraft-40421159568518bb7573903d14a2c69c64dead95.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Render.hpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/src/Render.hpp b/src/Render.hpp index 9a9feee..87494fa 100644 --- a/src/Render.hpp +++ b/src/Render.hpp @@ -8,11 +8,10 @@ #include <SDL.h> #include "Utility.hpp" -#include "Renderer.hpp" #include "Event.hpp" +#include "Gal.hpp" class RendererWorld; -class Framebuffer; class RmlRenderInterface; class RmlSystemInterface; class RmlFileInterface; @@ -31,20 +30,25 @@ class Render { float mouseXDelta, mouseYDelta; std::unique_ptr<RendererWorld> world; bool renderWorld = false; - RenderState renderState; + size_t windowWidth, windowHeight; 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); |