Lagrange
FrameBuffer Class Reference

Public Member Functions

 FrameBuffer (GLuint custom_id)
 
void resize_attachments (int w, int h)
 
void bind ()
 
void set_depth_attachement (std::shared_ptr< Texture > t, GLenum target=GL_TEXTURE_2D, int mipmap_level=0)
 
void set_color_attachement (unsigned int index, std::shared_ptr< Texture > t, GLenum target=GL_TEXTURE_2D, int mipmap_level=0)
 
GLuint get_id () const
 
bool check_status () const
 
bool is_srgb () const
 
std::shared_ptr< Textureget_color_attachement (int index) const
 
std::shared_ptr< Textureget_depth_attachment () const
 
bool has_color_attachment () const
 
bool has_depth_attachement () const
 

Static Public Member Functions

static void unbind ()
 
static int get_max_color_attachments ()
 

The documentation for this class was generated from the following files: