#ifndef FRAMEBUFFER_H #define FRAMEBUFFER_H #include #include #include class FrameBuffer { public: FrameBuffer(); FrameBuffer(int width, int height); ~FrameBuffer(); unsigned int GetFrameTexture() const; static FrameBuffer Create(int width, int height); void RescaleFrameBuffer(int width, int height) const; void Bind() const; static void Unbind(); void Shutdown() const; private: unsigned int m_FBO{}, m_RBO{}; unsigned int m_Texture{}; }; #endif