| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

AttachedRenderbuffer.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <glbinding/gl/types.h>
5
6 #include <globjects/base/ref_ptr.h>
7
8 #include <globjects/globjects_api.h>
9 #include <globjects/FramebufferAttachment.h>
10
11
12 namespace globjects
13 {
14
15
16 class Renderbuffer;
17 class Framebuffer;
18
27 class GLOBJECTS_API AttachedRenderbuffer : public FramebufferAttachment
28 {
29 public:
30 AttachedRenderbuffer(Framebuffer * fbo, gl::GLenum attachment, Renderbuffer * renderBuffer);
31
32 virtual bool isRenderBufferAttachment() const override;
33
34 Renderbuffer * renderBuffer();
35 const Renderbuffer * renderBuffer() const;
36
37 protected:
38 ref_ptr<Renderbuffer> m_renderBuffer;
39 };
40
41
42 } // namespace globjects
globjects::Renderbuffer
Encapsulates OpenGL render buffer objects.
Definition: Renderbuffer.h:18
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.
ref_ptr.h
globjects::FramebufferAttachment
Wraps attachments to a FrameBufferObject.
Definition: FramebufferAttachment.h:29
globjects::AttachedRenderbuffer::m_renderBuffer
ref_ptr< Renderbuffer > m_renderBuffer
Definition: AttachedRenderbuffer.h:38
globjects::Framebuffer
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition: Framebuffer.h:46
globjects::AttachedRenderbuffer
Wrapper of render buffer attachments of a frame buffer object.
Definition: AttachedRenderbuffer.h:27
FramebufferAttachment.h