globjects
2.0.0.690708773bba
Strict OpenGL objects wrapper.
|
Wrapper of render buffer attachments of a frame buffer object. More...
#include <globjects/include/globjects/AttachedRenderbuffer.h>
Public Member Functions | |
AttachedRenderbuffer (Framebuffer *fbo, gl::GLenum attachment, Renderbuffer *renderBuffer) | |
virtual bool | isRenderBufferAttachment () const override |
Renderbuffer * | renderBuffer () |
const Renderbuffer * | renderBuffer () 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 |
AttachedTexture * | asTextureAttachment () |
const AttachedTexture * | asTextureAttachment () const |
AttachedRenderbuffer * | asRenderBufferAttachment () |
const AttachedRenderbuffer * | asRenderBufferAttachment () const |
std::string | attachmentString () const |
Protected Attributes | |
Renderbuffer * | m_renderBuffer |
Protected Attributes inherited from globjects::FramebufferAttachment | |
Framebuffer * | m_fbo |
gl::GLenum | m_attachment |
Additional Inherited Members | |
Static Public Member Functions inherited from globjects::Instantiator< AttachedRenderbuffer > | |
static std::unique_ptr< AttachedRenderbuffer > | create (Args &&...args) |
static std::unique_ptr< AttachedRenderbuffer > | fromId (gl::GLuint id, Args &&...args) |
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().
globjects::AttachedRenderbuffer::AttachedRenderbuffer | ( | Framebuffer * | fbo, |
gl::GLenum | attachment, | ||
Renderbuffer * | renderBuffer | ||
) |
|
overridevirtual |
Reimplemented from globjects::FramebufferAttachment.
Renderbuffer* globjects::AttachedRenderbuffer::renderBuffer | ( | ) |
const Renderbuffer* globjects::AttachedRenderbuffer::renderBuffer | ( | ) | const |
|
protected |