globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::FramebufferAttachment Class Reference

Wraps attachments to a FrameBufferObject. More...

#include <globjects/include/globjects/FramebufferAttachment.h>

Inheritance diagram for globjects::FramebufferAttachment:
globjects::AttachedRenderbuffer globjects::AttachedTexture

Public Member Functions

 FramebufferAttachment (Framebuffer *fbo, gl::GLenum attachment)
 
gl::GLenum attachment () const
 
gl::GLint getParameter (gl::GLenum pname) const
 
virtual bool isTextureAttachment () const
 
virtual bool isRenderBufferAttachment () const
 
AttachedTextureasTextureAttachment ()
 
const AttachedTextureasTextureAttachment () const
 
AttachedRenderbufferasRenderBufferAttachment ()
 
const AttachedRenderbufferasRenderBufferAttachment () const
 
std::string attachmentString () const
 

Protected Attributes

Framebufferm_fbo
 
gl::GLenum m_attachment
 

Detailed Description

Wraps attachments to a FrameBufferObject.

Normally, FrameBufferAttachments are created using the API of FrameBufferObject.

See also
FrameBufferObject
TextureAttachment
RenderBufferAttachment

Constructor & Destructor Documentation

globjects::FramebufferAttachment::FramebufferAttachment ( Framebuffer fbo,
gl::GLenum  attachment 
)

Member Function Documentation

gl::GLenum globjects::FramebufferAttachment::attachment ( ) const
gl::GLint globjects::FramebufferAttachment::getParameter ( gl::GLenum  pname) const
virtual bool globjects::FramebufferAttachment::isTextureAttachment ( ) const
virtual

Reimplemented in globjects::AttachedTexture.

virtual bool globjects::FramebufferAttachment::isRenderBufferAttachment ( ) const
virtual
AttachedTexture* globjects::FramebufferAttachment::asTextureAttachment ( )
const AttachedTexture* globjects::FramebufferAttachment::asTextureAttachment ( ) const
AttachedRenderbuffer* globjects::FramebufferAttachment::asRenderBufferAttachment ( )
const AttachedRenderbuffer* globjects::FramebufferAttachment::asRenderBufferAttachment ( ) const
std::string globjects::FramebufferAttachment::attachmentString ( ) const

Member Data Documentation

Framebuffer* globjects::FramebufferAttachment::m_fbo
protected
gl::GLenum globjects::FramebufferAttachment::m_attachment
protected

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