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

Wrapper of render buffer attachments of a frame buffer object. More...

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

Inheritance diagram for globjects::AttachedRenderbuffer:
globjects::FramebufferAttachment globjects::Instantiator< AttachedRenderbuffer >

Public Member Functions

 AttachedRenderbuffer (Framebuffer *fbo, gl::GLenum attachment, Renderbuffer *renderBuffer)
 
virtual bool isRenderBufferAttachment () const override
 
RenderbufferrenderBuffer ()
 
const RenderbufferrenderBuffer () const
 
- Public Member Functions inherited from globjects::FramebufferAttachment
 FramebufferAttachment (Framebuffer *fbo, gl::GLenum attachment)
 
gl::GLenum attachment () const
 
gl::GLint getParameter (gl::GLenum pname) const
 
virtual bool isTextureAttachment () const
 
AttachedTextureasTextureAttachment ()
 
const AttachedTextureasTextureAttachment () const
 
AttachedRenderbufferasRenderBufferAttachment ()
 
const AttachedRenderbufferasRenderBufferAttachment () const
 
std::string attachmentString () const
 

Protected Attributes

Renderbufferm_renderBuffer
 
- Protected Attributes inherited from globjects::FramebufferAttachment
Framebufferm_fbo
 
gl::GLenum m_attachment
 

Additional Inherited Members

- Static Public Member Functions inherited from globjects::Instantiator< AttachedRenderbuffer >
static std::unique_ptr< AttachedRenderbuffercreate (Args &&...args)
 
static std::unique_ptr< AttachedRenderbufferfromId (gl::GLuint id, Args &&...args)
 

Detailed Description

Wrapper of render buffer attachments of a frame buffer object.

This class is a link between a RenderBufferObject and the FrameBufferObject it is attached to. To get the attached render buffer, call renderBuffer().

See also
Renderbuffer
Framebuffer

Constructor & Destructor Documentation

globjects::AttachedRenderbuffer::AttachedRenderbuffer ( Framebuffer fbo,
gl::GLenum  attachment,
Renderbuffer renderBuffer 
)

Member Function Documentation

virtual bool globjects::AttachedRenderbuffer::isRenderBufferAttachment ( ) const
overridevirtual

Reimplemented from globjects::FramebufferAttachment.

Renderbuffer* globjects::AttachedRenderbuffer::renderBuffer ( )
const Renderbuffer* globjects::AttachedRenderbuffer::renderBuffer ( ) const

Member Data Documentation

Renderbuffer* globjects::AttachedRenderbuffer::m_renderBuffer
protected

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