globjects  2.0.0.4363356ae2ef
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
AttachedRenderbuffer.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <glbinding/gl/types.h>
6
7#include <globjects/globjects_api.h>
10
11
12namespace globjects
13{
14
15
16class Renderbuffer;
17class Framebuffer;
18
27class GLOBJECTS_API AttachedRenderbuffer : public FramebufferAttachment, public Instantiator<AttachedRenderbuffer>
28{
29public:
30 AttachedRenderbuffer(Framebuffer * fbo, gl::GLenum attachment, Renderbuffer * renderBuffer);
31
32 virtual bool isRenderBufferAttachment() const override;
33
35 const Renderbuffer * renderBuffer() const;
36
37
38protected:
40};
41
42
43} // namespace globjects
Wrapper of render buffer attachments of a frame buffer object.
Definition: AttachedRenderbuffer.h:28
Renderbuffer * m_renderBuffer
Definition: AttachedRenderbuffer.h:39
const Renderbuffer * renderBuffer() const
virtual bool isRenderBufferAttachment() const override
AttachedRenderbuffer(Framebuffer *fbo, gl::GLenum attachment, Renderbuffer *renderBuffer)
Wraps attachments to a FrameBufferObject.
Definition: FramebufferAttachment.h:30
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition: Framebuffer.h:54
CRTP for creating objects similar to std::make_unique.
Definition: Instantiator.h:22
Encapsulates OpenGL render buffer objects.
Definition: Renderbuffer.h:21
Contains all the classes that wrap OpenGL functionality.