Visualization Library

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

vl::FBOTexture2DAttachment Class Reference

A 2D texture renderbuffer to be attached to a framebuffer object rendering target (FBORenderTarget). More...

#include <FramebufferObject.hpp>

Inheritance diagram for vl::FBOTexture2DAttachment:
vl::FBOAttachmentAbstract vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 FBOTexture2DAttachment (Texture *texture, int level, ETex2DTarget target)
void setTexture (Texture *texture)
Texturetexture ()
const Texturetexture () const
int level () const
ETex2DTarget textureTarget () const
void setTextureTarget (ETex2DTarget target)
virtual void bindAttachment (int w, int h, EAttachmentPoint attach_point)
 Binds this renderbuffer to the currently active framebuffer object (GL_FRAMEBUFFER).

Protected Attributes

ref< TexturemTexture
ETex2DTarget mTextureTarget
int mLevel

Detailed Description

A 2D texture renderbuffer to be attached to a framebuffer object rendering target (FBORenderTarget).

Wraps the function glFramebufferTexture2DEXT.


Constructor & Destructor Documentation

vl::FBOTexture2DAttachment::FBOTexture2DAttachment ( Texture texture,
int  level,
ETex2DTarget  target 
) [inline]

Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::FBOAttachmentAbstract.

void vl::FBOTexture2DAttachment::setTexture ( Texture texture ) [inline]
Texture* vl::FBOTexture2DAttachment::texture (  ) [inline]
const Texture* vl::FBOTexture2DAttachment::texture (  ) const [inline]
int vl::FBOTexture2DAttachment::level (  ) const [inline]
ETex2DTarget vl::FBOTexture2DAttachment::textureTarget (  ) const [inline]
void vl::FBOTexture2DAttachment::setTextureTarget ( ETex2DTarget  target ) [inline]
void FBOTexture2DAttachment::bindAttachment ( int  w,
int  h,
EAttachmentPoint  attach_point 
) [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.


Member Data Documentation


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

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.