diff options
author | LaG1924 <lag1924@gmail.com> | 2021-11-19 20:29:28 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-11-19 20:29:28 +0100 |
commit | 83c61036966c4c358a094cabe27c8de60082200d (patch) | |
tree | 6947537bd6af8a1e0d16de6a75f3e07f7db3b268 /src/Framebuffer.hpp | |
parent | Added framebuffer to Gal (diff) | |
download | AltCraft-83c61036966c4c358a094cabe27c8de60082200d.tar AltCraft-83c61036966c4c358a094cabe27c8de60082200d.tar.gz AltCraft-83c61036966c4c358a094cabe27c8de60082200d.tar.bz2 AltCraft-83c61036966c4c358a094cabe27c8de60082200d.tar.lz AltCraft-83c61036966c4c358a094cabe27c8de60082200d.tar.xz AltCraft-83c61036966c4c358a094cabe27c8de60082200d.tar.zst AltCraft-83c61036966c4c358a094cabe27c8de60082200d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Framebuffer.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/Framebuffer.hpp b/src/Framebuffer.hpp deleted file mode 100644 index f5c102d..0000000 --- a/src/Framebuffer.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include <GL/glew.h> - -class Framebuffer { - unsigned int width, height; - GLuint fbo, texColor = 0, rboDepthStencil = 0; -public: - Framebuffer(unsigned int width, unsigned int height, bool createDepthStencilBuffer); - ~Framebuffer(); - Framebuffer(const Framebuffer&) = delete; - Framebuffer(Framebuffer &&) = delete; - Framebuffer &operator=(const Framebuffer &) = delete; - Framebuffer &operator=(Framebuffer &&) = delete; - - void Activate(); - - void RenderTo(Framebuffer &target); - - void Resize(unsigned int newWidth, unsigned int newHeight); - - inline GLuint GetColor() { - return texColor; - } - - static Framebuffer &GetDefault(); - - void Clear(bool color = true, bool depth = true, bool stencil = true); -}; |