|
ReTo
0.3.7
|
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. | |
Class to manage a framebuffer with 2D textures.
Definition at line 110 of file Framebuffer.h.
| reto::Framebuffer2D::Framebuffer2D | ( | const std::string & | vertexCode, |
| const std::string & | fragmentCode, | ||
| const AttachmentsConfig & | attsConfig, | ||
| const unsigned int & | width, | ||
| const unsigned int & | height | ||
| ) |
Framebuffer2D constructor.
| vertexCode | vertex shader code |
| fragmentCode | fragment shader code |
| attsConfig | attachments configuration |
| width | screen width |
| height | screen height |
| void reto::Framebuffer2D::resize | ( | const unsigned int & | width, |
| const unsigned int & | height | ||
| ) |
Method to resize the framebuffer size.
| width | screen width |
| height | screen height |