globjects  2.0.0.630135941c42
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
FramebufferAttachment.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <string>
6
7#include <glbinding/gl/types.h>
8
9#include <globjects/globjects_api.h>
10
11
12namespace globjects
13{
14
15
16class AttachedTexture;
17class AttachedRenderbuffer;
18class Framebuffer;
19
20
29class GLOBJECTS_API FramebufferAttachment
30{
31public:
32 FramebufferAttachment(Framebuffer * fbo, gl::GLenum attachment);
33
34 gl::GLenum attachment() const;
35
36 gl::GLint getParameter(gl::GLenum pname) const;
37
38 virtual bool isTextureAttachment() const;
39 virtual bool isRenderBufferAttachment() const;
40
45
46 std::string attachmentString() const;
47
48
49protected:
51 gl::GLenum m_attachment;
52};
53
54
55} // namespace globjects
Wrapper of render buffer attachments of a frame buffer object.
Definition AttachedRenderbuffer.h:28
Encapsulates texture attachments of a frame buffer object.
Definition AttachedTexture.h:28
Wraps attachments to a FrameBufferObject.
Definition FramebufferAttachment.h:30
const AttachedTexture * asTextureAttachment() const
const AttachedRenderbuffer * asRenderBufferAttachment() const
virtual bool isRenderBufferAttachment() const
std::string attachmentString() const
virtual bool isTextureAttachment() const
FramebufferAttachment(Framebuffer *fbo, gl::GLenum attachment)
gl::GLint getParameter(gl::GLenum pname) const
gl::GLenum m_attachment
Definition FramebufferAttachment.h:51
AttachedTexture * asTextureAttachment()
AttachedRenderbuffer * asRenderBufferAttachment()
Framebuffer * m_fbo
Definition FramebufferAttachment.h:50
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition Framebuffer.h:54
Contains all the classes that wrap OpenGL functionality.