#ifndef FRAMEBUFFER_H #define FRAMEBUFFER_H #include #include class Texture; class FrameBuffer { protected: GLuint fbo; std::vector textures; std::vector attachments; public: FrameBuffer(bool isNULL = false); ~FrameBuffer(); void addTexture(Texture* tex, GLenum attachment); void initGL(); void bindFBO(); Texture* getTexture(int texId); static FrameBuffer* getScreen(); }; #endif // FRAMEBUFFER_H