Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
A 2D texture renderbuffer to be attached to a FramebufferObject (wraps glFramebufferTexture2D()).
More...
#include <FramebufferObject.hpp>
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 |
A 2D texture renderbuffer to be attached to a FramebufferObject (wraps glFramebufferTexture2D()).
Definition at line 372 of file FramebufferObject.hpp.
| 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.
| 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] |
Implements vl::FBOAbstractAttachment.
Definition at line 384 of file FramebufferObject.cpp.
References vl::Log::bug(), vl::Texture::dimension(), vl::Has_FBO, vl::Texture::height(), vl::Framebuffer::height(), vl::FBOAbstractTextureAttachment::mipmapLevel(), vl::TD_TEXTURE_2D_MULTISAMPLE, vl::TD_TEXTURE_CUBE_MAP, vl::FBOAbstractTextureAttachment::texture(), textureTarget(), VL_CHECK, VL_CHECK_OGL, vl::Texture::width(), and vl::Framebuffer::width().
Definition at line 401 of file FramebufferObject.hpp.