RenderTools::Framebuffer Class Reference

#include <Framebuffer.h>

Inheritance diagram for RenderTools::Framebuffer:

RenderTools::BindingInterface RenderTools::AbstractPropertyContainer RenderTools::ContainerProperty RenderTools::AbstractProperty RenderTools::InitializeInterface

List of all members.

Public Member Functions

 Framebuffer (void)
virtual ~Framebuffer (void)
 deletes the framebuffer
virtual void createProperties (void)
virtual const string getTypeName (bool ofComponent=false) const
virtual void onInitialize (void)
virtual void onBind (int unit=-1)
virtual void onUnbind (int unit=-1)
void addRenderbuffer (const RenderbufferPtr buffer, bool send=true)
void addRenderbuffer (const string buffer, bool send=true)
bool hasColorBuffer (void) const
bool hasStencilBuffer (void) const
bool hasDepthBuffer (void) const
GLuint getID (void) const
GLuint getWidth (void) const
GLuint getHeight (void) const

Static Public Member Functions

static PropertyPtr create (const XMLNodePtr &xml=XMLNodePtr())
static void copy (const FramebufferPtr from, const FramebufferPtr to)
static void copy (const SamplerPtr s, GLuint to)
static void setDefaultFramebufferID (GLuint id)
static void setDefaultReadbufferID (GLuint id)
static void setDefaultDrawbufferID (GLuint id)
static GLuint getDefaultFramebufferID (void)
static GLuint getDefaultReadbufferID (void)
static GLuint getDefaultDrawbufferID (void)


Detailed Description

set of Renderbuffers as a complete Framebuffer

Definition at line 19 of file Framebuffer.h.


Constructor & Destructor Documentation

RenderTools::Framebuffer::Framebuffer ( void   ) 

Definition at line 19 of file Framebuffer.cpp.

RenderTools::Framebuffer::~Framebuffer ( void   )  [virtual]

deletes the framebuffer

Definition at line 52 of file Framebuffer.cpp.


Member Function Documentation

void RenderTools::Framebuffer::addRenderbuffer ( const string  buffer,
bool  send = true 
)

void RenderTools::Framebuffer::addRenderbuffer ( const RenderbufferPtr  buffer,
bool  send = true 
)

<

Warning:
GL_packed_depth_stencil required

Definition at line 62 of file Framebuffer.cpp.

void RenderTools::Framebuffer::copy ( const SamplerPtr  s,
GLuint  to 
) [static]

TODO

Definition at line 276 of file Framebuffer.cpp.

void RenderTools::Framebuffer::copy ( const FramebufferPtr  from,
const FramebufferPtr  to 
) [static]

Definition at line 236 of file Framebuffer.cpp.

PropertyPtr RenderTools::Framebuffer::create ( const XMLNodePtr xml = XMLNodePtr()  )  [static]

Definition at line 27 of file Framebuffer.cpp.

void RenderTools::Framebuffer::createProperties ( void   )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 35 of file Framebuffer.cpp.

GLuint RenderTools::Framebuffer::getDefaultDrawbufferID ( void   )  [static]

Definition at line 324 of file Framebuffer.cpp.

GLuint RenderTools::Framebuffer::getDefaultFramebufferID ( void   )  [static]

Definition at line 316 of file Framebuffer.cpp.

GLuint RenderTools::Framebuffer::getDefaultReadbufferID ( void   )  [static]

Definition at line 320 of file Framebuffer.cpp.

GLuint RenderTools::Framebuffer::getHeight ( void   )  const

Definition at line 300 of file Framebuffer.cpp.

GLuint RenderTools::Framebuffer::getID ( void   )  const

Definition at line 292 of file Framebuffer.cpp.

const string RenderTools::Framebuffer::getTypeName ( bool  ofComponent = false  )  const [virtual]

Reimplemented from RenderTools::ContainerProperty.

Definition at line 45 of file Framebuffer.cpp.

GLuint RenderTools::Framebuffer::getWidth ( void   )  const

Definition at line 296 of file Framebuffer.cpp.

bool RenderTools::Framebuffer::hasColorBuffer ( void   )  const

Definition at line 280 of file Framebuffer.cpp.

bool RenderTools::Framebuffer::hasDepthBuffer ( void   )  const

Definition at line 288 of file Framebuffer.cpp.

bool RenderTools::Framebuffer::hasStencilBuffer ( void   )  const

Definition at line 284 of file Framebuffer.cpp.

void RenderTools::Framebuffer::onBind ( int  unit = -1  )  [virtual]

Implements RenderTools::BindingInterface.

Definition at line 186 of file Framebuffer.cpp.

void RenderTools::Framebuffer::onInitialize ( void   )  [virtual]

create an ID

check if OK

unbind until called upon

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 125 of file Framebuffer.cpp.

void RenderTools::Framebuffer::onUnbind ( int  unit = -1  )  [virtual]

Implements RenderTools::BindingInterface.

Definition at line 218 of file Framebuffer.cpp.

void RenderTools::Framebuffer::setDefaultDrawbufferID ( GLuint  id  )  [static]

Definition at line 312 of file Framebuffer.cpp.

void RenderTools::Framebuffer::setDefaultFramebufferID ( GLuint  id  )  [static]

Definition at line 304 of file Framebuffer.cpp.

void RenderTools::Framebuffer::setDefaultReadbufferID ( GLuint  id  )  [static]

Definition at line 308 of file Framebuffer.cpp.


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

Generated on Wed Jan 26 00:15:36 2011 for RenderTools by  doxygen 1.5.8