/src/sleek/driver/ogl4/ogl4_fbo.h
12,19 → 12,22
class ogl4_fbo : public fbo
{
public:
ogl4_fbo(device::Device*, const math::vec2i &size, std::vector<FBO_ATTACHMENT>) noexcept;
ogl4_fbo(const math::vec2i &size, const std::vector<TextureFormat> &) noexcept;
virtual ~ogl4_fbo() noexcept;
 
virtual void* getHardwareTarget() const noexcept { return (void*)GL_FRAMEBUFFER; }
virtual void* getHardwareLink() const noexcept;
 
virtual void update() const noexcept;
virtual void bind() const noexcept;
virtual void unbind() const noexcept;
virtual void resize(const math::vec2i &size) noexcept;
 
virtual void update() noexcept;
virtual void bind() noexcept;
virtual void bind(int) noexcept;
virtual void unbind() noexcept;
protected:
GLenum status;
GLuint framebuffer;
GLuint depthbuffer;
std::vector<GLuint> textures;
private:
};
}