AttachedRenderbuffer.h
Go to the documentation of this file.
#pragma once
#include <glbinding/gl/types.h>
#include <globjects/base/ref_ptr.h>
#include <globjects/globjects_api.h>
#include <globjects/FramebufferAttachment.h>
namespace globjects
{
class Renderbuffer;
class Framebuffer;
class GLOBJECTS_API AttachedRenderbuffer : public FramebufferAttachment
{
public:
AttachedRenderbuffer(Framebuffer * fbo, gl::GLenum attachment, Renderbuffer * renderBuffer);
virtual bool isRenderBufferAttachment() const override;
Renderbuffer * renderBuffer();
const Renderbuffer * renderBuffer() const;
protected:
ref_ptr<Renderbuffer> m_renderBuffer;
};
} // namespace globjects
globjects::AttachedRenderbuffer
Wrapper of render buffer attachments of a frame buffer object.
Definition: AttachedRenderbuffer.h:27
globjects::ref_ptr
The ref_ptr class provides the interface for a reference pointer.
Definition: LogMessageBuilder.h:20
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Framebuffer
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition: Framebuffer.h:46
globjects::AttachedRenderbuffer::m_renderBuffer
ref_ptr< Renderbuffer > m_renderBuffer
Definition: AttachedRenderbuffer.h:38
ref_ptr.h
FramebufferAttachment.h
globjects::FramebufferAttachment
Wraps attachments to a FrameBufferObject.
Definition: FramebufferAttachment.h:29
globjects::Renderbuffer
Encapsulates OpenGL render buffer objects.
Definition: Renderbuffer.h:18