ReTo  0.3.7
reto::Quad Class Reference

Class to manage a quad. More...

#include <Framebuffer.h>

+ Inheritance diagram for reto::Quad:
+ Collaboration diagram for reto::Quad:

Public Member Functions

 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 quad.

Definition at line 47 of file Framebuffer.h.

Constructor & Destructor Documentation

reto::Quad::Quad ( const std::string &  vertexCode,
const std::string &  fragmentCode 
)

Quad constructor.

Parameters
vertexCodevertex shader code
fragmentCodefragment shader code

Member Function Documentation

reto::ShaderProgram* const& reto::Quad::program ( void  ) const

Method to get program handler.

Returns
program handler.

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