RenderTools::Renderbuffer Class Reference

#include <Renderbuffer.h>

Inheritance diagram for RenderTools::Renderbuffer:

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

List of all members.

Public Types

enum  BufferType {
  UNACCEPTABLE, COLORBUFFER, STENCILBUFFER, DEPTHBUFFER,
  DEPTHSTENCILBUFFER
}

Public Member Functions

 Renderbuffer (void)
 TODO: find some pupose for this.
virtual ~Renderbuffer (void)
virtual void createProperties (void)
virtual void onPropertyEvent (const PropertyEvent &)
virtual const string getTypeName (bool ofComponent=false) const
virtual void onInitialize (void)
virtual void onBind (int unit=-1)
virtual void onUnbind (int unit=-1)
GLuint getID (void) const
GLuint getWidth (void) const
GLuint getHeight (void) const
BufferType getType (void) const
const SamplerProxyPtr getSamplerProxy (void) const
bool hasSampler (void) const

Static Public Member Functions

static PropertyPtr create (const XMLNodePtr &xml=XMLNodePtr())
static void onUnbind (void)
static BufferType getTypeFromFormat (GLint format)
static void setDefaultColorbufferID (GLuint id)
static void setDefaultDepthbufferID (GLuint id)
static void setDefaultStencilbufferID (GLuint id)
static GLuint getDefaultColorbufferID (void)
static GLuint getDefaultDepthbufferID (void)
static GLuint getDefaultStencilbufferID (void)


Detailed Description

Definition at line 23 of file Renderbuffer.h.


Member Enumeration Documentation

Enumerator:
UNACCEPTABLE 
COLORBUFFER 
STENCILBUFFER 
DEPTHBUFFER 
DEPTHSTENCILBUFFER 

Definition at line 26 of file Renderbuffer.h.


Constructor & Destructor Documentation

RenderTools::Renderbuffer::Renderbuffer ( void   ) 

TODO: find some pupose for this.

Definition at line 13 of file Renderbuffer.cpp.

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

Definition at line 107 of file Renderbuffer.cpp.


Member Function Documentation

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

Definition at line 21 of file Renderbuffer.cpp.

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

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 29 of file Renderbuffer.cpp.

GLuint RenderTools::Renderbuffer::getDefaultColorbufferID ( void   )  [static]

Definition at line 393 of file Renderbuffer.cpp.

GLuint RenderTools::Renderbuffer::getDefaultDepthbufferID ( void   )  [static]

Definition at line 397 of file Renderbuffer.cpp.

GLuint RenderTools::Renderbuffer::getDefaultStencilbufferID ( void   )  [static]

Definition at line 401 of file Renderbuffer.cpp.

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

Definition at line 121 of file Renderbuffer.cpp.

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

Definition at line 113 of file Renderbuffer.cpp.

const SamplerProxyPtr RenderTools::Renderbuffer::getSamplerProxy ( void   )  const

Definition at line 129 of file Renderbuffer.cpp.

Renderbuffer::BufferType RenderTools::Renderbuffer::getType ( void   )  const

Definition at line 125 of file Renderbuffer.cpp.

Renderbuffer::BufferType RenderTools::Renderbuffer::getTypeFromFormat ( GLint  format  )  [static]

Definition at line 142 of file Renderbuffer.cpp.

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

Reimplemented from RenderTools::ContainerProperty.

Definition at line 47 of file Renderbuffer.cpp.

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

Definition at line 117 of file Renderbuffer.cpp.

bool RenderTools::Renderbuffer::hasSampler ( void   )  const

Definition at line 133 of file Renderbuffer.cpp.

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

Implements RenderTools::BindingInterface.

Definition at line 95 of file Renderbuffer.cpp.

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

if we have a sampler

link the renderproxy to the actual sampler

copy our settings from the sampler

TODO destroy previously initialised

if we don't have a sampler, we need to create our own storage

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 55 of file Renderbuffer.cpp.

void RenderTools::Renderbuffer::onPropertyEvent ( const PropertyEvent e  )  [virtual]

Reimplemented from RenderTools::AbstractPropertyContainer.

Definition at line 51 of file Renderbuffer.cpp.

static void RenderTools::Renderbuffer::onUnbind ( void   )  [static]

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

Implements RenderTools::BindingInterface.

Definition at line 99 of file Renderbuffer.cpp.

void RenderTools::Renderbuffer::setDefaultColorbufferID ( GLuint  id  )  [static]

Definition at line 381 of file Renderbuffer.cpp.

void RenderTools::Renderbuffer::setDefaultDepthbufferID ( GLuint  id  )  [static]

Definition at line 385 of file Renderbuffer.cpp.

void RenderTools::Renderbuffer::setDefaultStencilbufferID ( GLuint  id  )  [static]

Definition at line 389 of file Renderbuffer.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