globjects
2.0.0.4363356ae2ef
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
globjects
include
globjects
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
12
namespace
globjects
13
{
14
15
16
class
AttachedTexture;
17
class
AttachedRenderbuffer;
18
class
Framebuffer;
19
20
29
class
GLOBJECTS_API
FramebufferAttachment
30
{
31
public
:
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
41
AttachedTexture
*
asTextureAttachment
();
42
const
AttachedTexture
*
asTextureAttachment
()
const
;
43
AttachedRenderbuffer
*
asRenderBufferAttachment
();
44
const
AttachedRenderbuffer
*
asRenderBufferAttachment
()
const
;
45
46
std::string
attachmentString
()
const
;
47
48
49
protected
:
50
Framebuffer
*
m_fbo
;
51
gl::GLenum
m_attachment
;
52
};
53
54
55
}
// namespace globjects
globjects::AttachedRenderbuffer
Wrapper of render buffer attachments of a frame buffer object.
Definition:
AttachedRenderbuffer.h:28
globjects::AttachedTexture
Encapsulates texture attachments of a frame buffer object.
Definition:
AttachedTexture.h:28
globjects::FramebufferAttachment
Wraps attachments to a FrameBufferObject.
Definition:
FramebufferAttachment.h:30
globjects::FramebufferAttachment::asTextureAttachment
const AttachedTexture * asTextureAttachment() const
globjects::FramebufferAttachment::asRenderBufferAttachment
const AttachedRenderbuffer * asRenderBufferAttachment() const
globjects::FramebufferAttachment::isRenderBufferAttachment
virtual bool isRenderBufferAttachment() const
globjects::FramebufferAttachment::attachmentString
std::string attachmentString() const
globjects::FramebufferAttachment::isTextureAttachment
virtual bool isTextureAttachment() const
globjects::FramebufferAttachment::FramebufferAttachment
FramebufferAttachment(Framebuffer *fbo, gl::GLenum attachment)
globjects::FramebufferAttachment::getParameter
gl::GLint getParameter(gl::GLenum pname) const
globjects::FramebufferAttachment::m_attachment
gl::GLenum m_attachment
Definition:
FramebufferAttachment.h:51
globjects::FramebufferAttachment::attachment
gl::GLenum attachment() const
globjects::FramebufferAttachment::asTextureAttachment
AttachedTexture * asTextureAttachment()
globjects::FramebufferAttachment::asRenderBufferAttachment
AttachedRenderbuffer * asRenderBufferAttachment()
globjects::FramebufferAttachment::m_fbo
Framebuffer * m_fbo
Definition:
FramebufferAttachment.h:50
globjects::Framebuffer
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition:
Framebuffer.h:54
globjects
Contains all the classes that wrap OpenGL functionality.
Generated on Wed May 10 2023 23:44:56 for globjects by
1.9.6