globjects  1.0.0.ae1b474792ef
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::Referenced globjects::HeapOnly 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
 
- Public Member Functions inherited from globjects::Referenced
 Referenced ()
 
void ref () const
 
void unref () const
 
int refCounter () const
 
- Public Member Functions inherited from globjects::HeapOnly
 HeapOnly ()
 
void destroy () const
 

Protected Attributes

Framebufferm_fbo
 
gl::GLenum m_attachment
 

Additional Inherited Members

- Protected Member Functions inherited from globjects::Referenced
virtual ~Referenced ()
 
- Protected Member Functions inherited from globjects::HeapOnly
virtual ~HeapOnly ()
 

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: