Activates framebuffer attachments. More...
#include <Outputs.hpp>
Public Member Functions | |
| Outputs (const Tag &tag) | |
| ~Outputs () | |
| virtual GLint | addAttachment (Attachment *attachment) |
| virtual void | apply () |
| virtual void | remove () |
| virtual string | toString () const |
Static Public Member Functions | |
| static Outputs * | find (Node *node) |
| static GLuint | getMaxDrawBuffers () |
Protected Member Functions | |
| virtual void | associate () |
| virtual void | finalize () |
Private Attributes | |
| list< Attachment * > | attachments |
| Framebuffer * | framebuffer |
| GLenum * | locations |
| GLsizei | n |
Activates framebuffer attachments.
| ~Outputs | ( | ) |
Deletes the locations array.
| GLint addAttachment | ( | Attachment * | attachment | ) | [virtual] |
Adds an attachment so it will be available for output.
| void apply | ( | ) | [virtual] |
Directs OpenGL to use the attachments of the bound output variables.
Implements Applicable.
| void associate | ( | ) | [protected, virtual] |
Makes sure there's a framebuffer.
| NodeException | if no Bind children were found. |
Reimplemented from Node.
| void finalize | ( | ) | [protected, virtual] |
Fills the locations array.
Reimplemented from Node.
| GLuint getMaxDrawBuffers | ( | ) | [static] |
Returns the maximum amount of items in the outputs list.
| string toString | ( | ) | const [virtual] |
Reimplemented from Node.
1.6.3