diff options
Diffstat (limited to 'src/render/Framebuffer.hpp')
| -rw-r--r-- | src/render/Framebuffer.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/render/Framebuffer.hpp b/src/render/Framebuffer.hpp new file mode 100644 index 00000000..5c76b9a6 --- /dev/null +++ b/src/render/Framebuffer.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include "../defines.hpp" +#include "Texture.hpp" + +class CFramebuffer { +public: + + bool alloc(int w, int h); + void bind(); + void release(); + void reset(); + + Vector2D m_Position; + Vector2D m_Size; + float m_fScale = 1; + + CTexture m_cTex; + GLuint m_iFb = -1; + + wl_output_transform m_tTransform; // for saving state +};
\ No newline at end of file |
