Class wrapping framebuffer-related functionality with direct state access. More...
#include </home/chochlik/devel/oglplus/include/oglplus/dsa/framebuffer.hpp>
Classes | |
struct | Property |
Types related to Framebuffer. More... | |
Public Types | |
typedef OneOf< GLenum, std::tuple < oglplus::ColorBuffer, oglplus::FramebufferColorAttachment > > | ColorBuffer |
Color buffer specification type. | |
typedef FramebufferTarget | Target |
Framebuffer bind targets. | |
Public Member Functions | |
FramebufferStatus | Status (Target target) const |
Checks the status of the framebuffer. More... | |
bool | IsComplete (Target target) const |
Returns true if the framebuffer is complete. More... | |
void | Complete (Target target) const |
Throws an exception if the framebuffer is not complete. | |
void | AttachRenderbuffer (Property::Attachment attachment, RenderbufferName renderbuffer) |
Attach a renderbuffer to the attachment point of this FBO. More... | |
void | AttachColorRenderbuffer (FramebufferColorAttachmentNumber attachment_no, RenderbufferName renderbuffer) |
Attach a renderbuffer to the color attachment_no of this FBO. More... | |
void | AttachTexture (Property::Attachment attachment, TextureName texture, GLint level) |
Attach a texture to the attachment point of this FBO. More... | |
void | AttachColorTexture (FramebufferColorAttachmentNumber attachment_no, TextureName texture, GLint level) |
Attach a texture to the color attachment point of this FBO. More... | |
void | AttachTextureLayer (Property::Attachment attachment, TextureName texture, GLint level, GLint layer) |
Attach a texture layer to the attachment point of this FBO. More... | |
void | DrawBuffer (ColorBuffer buffer) |
Sets the destination color buffer for draw operations. More... | |
template<unsigned N> | |
void | DrawBuffers (const EnumArray< ColorBuffer > &buffers) |
Sets the destination color buffers for draw operations. More... | |
void | ReadBuffer (ColorBuffer buffer) |
Sets the source color buffer for read operations. More... | |
void | Bind (Target target) const |
Binds this framebuffer to the specified target . More... | |
Static Public Member Functions | |
static void | Bind (Target target, FramebufferName framebuffer) |
Binds the specified framebuffer to the specified target . More... | |
static FramebufferName | Binding (Target target) |
Returns the current Framebuffer bound to specified target . More... | |
Class wrapping framebuffer-related functionality with direct state access.
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::AttachColorRenderbuffer | ( | FramebufferColorAttachmentNumber | attachment_no, |
RenderbufferName | renderbuffer | ||
) |
Attach a renderbuffer
to the color attachment_no
of this FBO.
References oglplus::GetGLName().
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::AttachColorTexture | ( | FramebufferColorAttachmentNumber | attachment_no, |
TextureName | texture, | ||
GLint | level | ||
) |
Attach a texture
to the color attachment
point of this FBO.
References oglplus::GetGLName().
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::AttachRenderbuffer | ( | Property::Attachment | attachment, |
RenderbufferName | renderbuffer | ||
) |
Attach a renderbuffer
to the attachment
point of this FBO.
References oglplus::GetGLName().
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::AttachTexture | ( | Property::Attachment | attachment, |
TextureName | texture, | ||
GLint | level | ||
) |
Attach a texture
to the attachment
point of this FBO.
References oglplus::GetGLName().
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::AttachTextureLayer | ( | Property::Attachment | attachment, |
TextureName | texture, | ||
GLint | level, | ||
GLint | layer | ||
) |
Attach a texture
layer to the attachment
point of this FBO.
References oglplus::GetGLName().
|
staticinherited |
Binds the specified framebuffer
to the specified target
.
References oglplus::GetGLName().
|
inherited |
Binds this framebuffer to the specified target
.
|
staticinherited |
Returns the current Framebuffer bound to specified target
.
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::DrawBuffer | ( | ColorBuffer | buffer | ) |
Sets the destination color buffer for draw operations.
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::DrawBuffers | ( | const EnumArray< ColorBuffer > & | buffers | ) |
Sets the destination color buffers for draw operations.
bool oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::IsComplete | ( | Target | target | ) | const |
Returns true if the framebuffer is complete.
References oglplus::Complete.
void oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::ReadBuffer | ( | ColorBuffer | buffer | ) |
Sets the source color buffer for read operations.
FramebufferStatus oglplus::ObjectOps< tag::DirectState, tag::Framebuffer >::Status | ( | Target | target | ) | const |
Checks the status of the framebuffer.
Returns one of the values in the FramebufferStatus
enumeration. For complete framebuffers this member function returns Status::Complete.