Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [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 FramebufferObject (wraps glFramebufferTexture2D()). More...

#include <FramebufferObject.hpp>

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

List of all members.

Public Member Functions

 FBOTexture2DAttachment ()
 Constructor.
 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 (FramebufferObject *fbo, EAttachmentPoint attach_point)

Protected Attributes

ETex2DTarget mTextureTarget

Detailed Description

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

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

Definition at line 372 of file FramebufferObject.hpp.


Constructor & Destructor Documentation

vl::FBOTexture2DAttachment::FBOTexture2DAttachment (  ) [inline]

Constructor.

Definition at line 378 of file FramebufferObject.hpp.

References vl::T2DT_TEXTURE_2D, and VL_DEBUG_SET_OBJECT_NAME.

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

Constructor.

Definition at line 385 of file FramebufferObject.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

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 392 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 395 of file FramebufferObject.hpp.

Referenced by bindAttachment().

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

Member Data Documentation

Definition at line 401 of file FramebufferObject.hpp.


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.