ReTo  0.3.7
reto::Framebuffer2D Class Reference

Class to manage a framebuffer with 2D textures. More...

#include <Framebuffer.h>

+ Inheritance diagram for reto::Framebuffer2D:
+ Collaboration diagram for reto::Framebuffer2D:

Public Member Functions

 Framebuffer2D (const std::string &vertexCode, const std::string &fragmentCode, const AttachmentsConfig &attsConfig, const unsigned int &width, const unsigned int &height)
 Framebuffer2D constructor. More...
 
virtual ~Framebuffer2D (void)
 Framebuffer2D destructor.
 
void bind (void)
 Method to bind framebuffer.
 
void unbind (void)
 Method to bind default framebuffer.
 
void resize (const unsigned int &width, const unsigned int &height)
 Method to resize the framebuffer size. More...
 
void bindAttachments (void)
 Method to bind all framebuffer attachments.
 
void clear (void)
 Method to bind all framebuffer attachments.
 
- Public Member Functions inherited from reto::Quad
 Quad (const std::string &vertexCode, const std::string &fragmentCode)
 Quad constructor. More...
 
 ~Quad (void)
 Quad destructor.
 
reto::ShaderProgram *const & program (void) const
 Method to get program handler. More...
 
void draw (void) const
 Method to draw quad.
 
void clear (void)
 Method to clear quad resources.
 

Detailed Description

Class to manage a framebuffer with 2D textures.

Definition at line 110 of file Framebuffer.h.

Constructor & Destructor Documentation

reto::Framebuffer2D::Framebuffer2D ( const std::string &  vertexCode,
const std::string &  fragmentCode,
const AttachmentsConfig &  attsConfig,
const unsigned int &  width,
const unsigned int &  height 
)

Framebuffer2D constructor.

Parameters
vertexCodevertex shader code
fragmentCodefragment shader code
attsConfigattachments configuration
widthscreen width
heightscreen height

Member Function Documentation

void reto::Framebuffer2D::resize ( const unsigned int &  width,
const unsigned int &  height 
)

Method to resize the framebuffer size.

Parameters
widthscreen width
heightscreen height

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