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::FBOTexture2DAttachment Class Reference

A 2D texture renderbuffer to be attached to a FBORenderTarget (wraps glFramebufferTexture2D()). More...

#include <FramebufferObject.hpp>

Inheritance diagram for vl::FBOTexture2DAttachment:
vl::FBOAbstractTextureAttachment vl::FBOAbstractAttachment vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 FBOTexture2DAttachment (Texture *texture, int mipmap_level, ETex2DTarget target)
 Constructor.
void setTextureTarget (ETex2DTarget target)
 What type of texture is expected, or for cube map textures, which face is to be attached.
ETex2DTarget textureTarget () const
 What type of texture is expected, or for cube map textures, which face is to be attached.

Protected Member Functions

virtual void bindAttachment (FBORenderTarget *fbo, EAttachmentPoint attach_point)

Protected Attributes

ETex2DTarget mTextureTarget

Detailed Description

A 2D texture renderbuffer to be attached to a FBORenderTarget (wraps glFramebufferTexture2D()).

See also:
http://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferTexture.xml

Definition at line 363 of file FramebufferObject.hpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 369 of file FramebufferObject.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::FBOAbstractTextureAttachment.

Definition at line 366 of file FramebufferObject.hpp.

void vl::FBOTexture2DAttachment::setTextureTarget ( ETex2DTarget  target ) [inline]

What type of texture is expected, or for cube map textures, which face is to be attached.

Definition at line 376 of file FramebufferObject.hpp.

ETex2DTarget vl::FBOTexture2DAttachment::textureTarget (  ) const [inline]

What type of texture is expected, or for cube map textures, which face is to be attached.

Definition at line 379 of file FramebufferObject.hpp.

Referenced by bindAttachment().

void FBOTexture2DAttachment::bindAttachment ( FBORenderTarget fbo,
EAttachmentPoint  attach_point 
) [protected, virtual]

Member Data Documentation

Definition at line 385 of file FramebufferObject.hpp.


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

Visualization Library v2011.05.1144 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Tue Sep 13 2011 21:59:13.
Permission is granted to use this page to write and publish articles regarding Visualization Library.