summaryrefslogtreecommitdiff
path: root/src/render/Framebuffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Framebuffer.hpp')
-rw-r--r--src/render/Framebuffer.hpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/render/Framebuffer.hpp b/src/render/Framebuffer.hpp
index 22809158..a46a4859 100644
--- a/src/render/Framebuffer.hpp
+++ b/src/render/Framebuffer.hpp
@@ -5,19 +5,20 @@
class CFramebuffer {
public:
+ CFramebuffer();
~CFramebuffer();
- bool alloc(int w, int h, uint32_t format = GL_RGBA);
- void addStencil();
- void bind();
- void release();
- void reset();
- bool isAllocated();
+ bool alloc(int w, int h, uint32_t format = GL_RGBA);
+ void addStencil();
+ void bind();
+ void release();
+ void reset();
+ bool isAllocated();
- Vector2D m_vSize;
+ Vector2D m_vSize;
- CTexture m_cTex;
- GLuint m_iFb = -1;
+ SP<CTexture> m_cTex;
+ GLuint m_iFb = -1;
- CTexture* m_pStencilTex = nullptr;
+ SP<CTexture> m_pStencilTex;
}; \ No newline at end of file