Outputs Class Reference
[Advanced]

Activates framebuffer attachments. More...

#include <Outputs.hpp>

Inheritance diagram for Outputs:
Node Applicable

List of all members.

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 Outputsfind (Node *node)
static GLuint getMaxDrawBuffers ()

Protected Member Functions

virtual void associate ()
virtual void finalize ()

Private Attributes

list< Attachment * > attachments
Framebufferframebuffer
GLenum * locations
GLsizei n

Detailed Description

Activates framebuffer attachments.


Constructor & Destructor Documentation

Outputs ( const Tag tag  ) 

Clears the locations array.

~Outputs (  ) 

Deletes the locations array.


Member Function Documentation

GLint addAttachment ( Attachment attachment  )  [virtual]

Adds an attachment so it will be available for output.

Returns:
Position of the attachment in list (-1 if couldn't be added).
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.

Exceptions:
NodeException if no Bind children were found.

Reimplemented from Node.

void finalize (  )  [protected, virtual]

Fills the locations array.

Reimplemented from Node.

Outputs * find ( Node node  )  [static]

Finds an Outputs node above another node.

GLuint getMaxDrawBuffers (  )  [static]

Returns the maximum amount of items in the outputs list.

string toString (  )  const [virtual]
Returns:
String comprised of the object's attributes.

Reimplemented from Node.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:36 2010 for Gander by  doxygen 1.6.3