Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Member Functions | Protected Attributes

vl::FBOColorBufferAttachment Class Reference

A color renderbuffer to be attached to a framebuffer object rendering target (FBORenderTarget). More...

#include <FramebufferObject.hpp>

Inheritance diagram for vl::FBOColorBufferAttachment:
vl::FBORenderbufferAttachment vl::FBOAttachmentAbstract vl::Object

List of all members.

Public Member Functions

 FBOColorBufferAttachment (EColorBufferFormat type)
virtual const char * className ()
 Returns the name of the class.
void setType (EColorBufferFormat type)
 Defines the type to specify when allocating the renderbuffer storage. Note that this function schedules a reallocation of the renderbuffer storage.
EColorBufferFormat type () const
void bindAttachment (int w, int h, EAttachmentPoint attach_point)
 Binds this renderbuffer to the currently active framebuffer object (GL_FRAMEBUFFER).

Protected Member Functions

virtual int internalType ()

Protected Attributes

EColorBufferFormat mType

Detailed Description

A color renderbuffer to be attached to a framebuffer object rendering target (FBORenderTarget).

Supports GL_EXT_framebuffer_multisample.


Constructor & Destructor Documentation

vl::FBOColorBufferAttachment::FBOColorBufferAttachment ( EColorBufferFormat  type ) [inline]

Member Function Documentation

virtual const char* vl::FBOColorBufferAttachment::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::FBORenderbufferAttachment.

void vl::FBOColorBufferAttachment::setType ( EColorBufferFormat  type ) [inline]

Defines the type to specify when allocating the renderbuffer storage. Note that this function schedules a reallocation of the renderbuffer storage.

EColorBufferFormat vl::FBOColorBufferAttachment::type (  ) const [inline]
void vl::FBOColorBufferAttachment::bindAttachment ( int  w,
int  h,
EAttachmentPoint  attach_point 
) [inline, virtual]

Binds this renderbuffer to the currently active framebuffer object (GL_FRAMEBUFFER).

This function also initializes its storage if 'w' and 'h' differ from the renderbuffer's current width() and height() and the renderbuffer is not a texture.

Implements vl::FBOAttachmentAbstract.

virtual int vl::FBOColorBufferAttachment::internalType (  ) [inline, protected, virtual]

Member Data Documentation


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

Visualization Library v2010.11.1125 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Fri Nov 26 2010 10:33:45.
Permission is granted to use this page to write and publish articles regarding Visualization Library.