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