Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

vl::FBOTextureLayerAttachment Class Reference

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

#include <FramebufferObject.hpp>

Inheritance diagram for vl::FBOTextureLayerAttachment:

vl::FBOAttachmentAbstract vl::Object

List of all members.

Public Member Functions

 FBOTextureLayerAttachment (Texture *texture, int mipmap_level, int layer)
virtual const char * className ()
 Returns the name of the class.
Texturetexture ()
const Texturetexture () const
int mipmapLevel () const
void setMipmapLevel (int level)
int layer () const
void setLayer (int layer)
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
int mMipmapLevel
int mLayer


Detailed Description

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

Wraps the function glFramebufferTextureLayerEXT from GL_EXT_texture_array and GL_ARB_geometry_shader4.


Constructor & Destructor Documentation

vl::FBOTextureLayerAttachment::FBOTextureLayerAttachment ( Texture texture,
int  mipmap_level,
int  layer 
) [inline]


Member Function Documentation

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

Returns the name of the class.

Reimplemented from vl::FBOAttachmentAbstract.

Texture* vl::FBOTextureLayerAttachment::texture (  )  [inline]

const Texture* vl::FBOTextureLayerAttachment::texture (  )  const [inline]

int vl::FBOTextureLayerAttachment::mipmapLevel (  )  const [inline]

void vl::FBOTextureLayerAttachment::setMipmapLevel ( int  level  )  [inline]

int vl::FBOTextureLayerAttachment::layer (  )  const [inline]

void vl::FBOTextureLayerAttachment::setLayer ( int  layer  )  [inline]

void FBOTextureLayerAttachment::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 v2009.07 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Mon Aug 10 21:41:35 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.