Wrapper for OpenGL framebuffer operations. More...
#include </home/chochlik/devel/oglplus/include/oglplus/framebuffer.hpp>

Classes | |
| struct | Property |
| Types related to Framebuffer. More... | |
Public Types | |
| typedef FramebufferTarget | Target |
| Framebuffer bind targets. | |
Public Member Functions | |
| void | Bind (Target target) const |
| Bind this framebuffer to the specified target. | |
Static Public Member Functions | |
| static void | BindDefault (Target target) |
| Binds the default framebuffer to the specified target. | |
| static FramebufferStatus | Status (Target target) |
| Checks the status of the framebuffer. | |
| static bool | IsComplete (Target target) |
| Returns true if the framebuffer is complete. | |
| static void | Complete (Target target) |
| Throws an exception if the framebuffer is not complete. | |
| static void | AttachRenderbuffer (Target target, Property::Attachment attachment, const RenderbufferOps &renderbuffer) |
Attach a renderbuffer to the attachment point of target. | |
| static void | AttachColorRenderbuffer (Target target, FramebufferColorAttachmentNumber attachment_no, const RenderbufferOps &renderbuffer) |
Attach a renderbuffer to the color attachment_no of target. | |
| static void | AttachTexture (Target target, Property::Attachment attachment, const TextureOps &texture, GLint level) |
Attach a texture to the attachment point of target. | |
| static void | AttachColorTexture (Target target, FramebufferColorAttachmentNumber attachment_no, const TextureOps &texture, GLint level) |
Attach a texture to the color attachment point of target. | |
| static void | AttachTexture1D (Target target, Property::Attachment attachment, Texture::Target textarget, const TextureOps &texture, GLint level) |
Attach a 1D texture to the attachment point of target. | |
| static void | AttachTexture2D (Target target, Property::Attachment attachment, Texture::Target textarget, const TextureOps &texture, GLint level) |
Attach a 2D texture to the attachment point of target. | |
| static void | AttachTexture3D (Target target, Property::Attachment attachment, Texture::Target textarget, const TextureOps &texture, GLint level, GLint layer) |
Attach a 3D texture to the attachment point of target. | |
| static void | AttachTextureLayer (Target target, Property::Attachment attachment, const TextureOps &texture, GLint level, GLint layer) |
Attach a texture layer to the attachment point of target. | |
Wrapper for OpenGL framebuffer operations.
| static void oglplus::FramebufferOps::AttachColorRenderbuffer | ( | Target | target, |
| FramebufferColorAttachmentNumber | attachment_no, | ||
| const RenderbufferOps & | renderbuffer | ||
| ) | [static] |
Attach a renderbuffer to the color attachment_no of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachColorRenderbuffer().
| static void oglplus::FramebufferOps::AttachColorTexture | ( | Target | target, |
| FramebufferColorAttachmentNumber | attachment_no, | ||
| const TextureOps & | texture, | ||
| GLint | level | ||
| ) | [static] |
Attach a texture to the color attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachColorTexture().
| static void oglplus::FramebufferOps::AttachRenderbuffer | ( | Target | target, |
| Property::Attachment | attachment, | ||
| const RenderbufferOps & | renderbuffer | ||
| ) | [static] |
Attach a renderbuffer to the attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachRenderbuffer().
| static void oglplus::FramebufferOps::AttachTexture | ( | Target | target, |
| Property::Attachment | attachment, | ||
| const TextureOps & | texture, | ||
| GLint | level | ||
| ) | [static] |
Attach a texture to the attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachTexture().
| static void oglplus::FramebufferOps::AttachTexture1D | ( | Target | target, |
| Property::Attachment | attachment, | ||
| Texture::Target | textarget, | ||
| const TextureOps & | texture, | ||
| GLint | level | ||
| ) | [static] |
Attach a 1D texture to the attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachTexture1D().
| static void oglplus::FramebufferOps::AttachTexture2D | ( | Target | target, |
| Property::Attachment | attachment, | ||
| Texture::Target | textarget, | ||
| const TextureOps & | texture, | ||
| GLint | level | ||
| ) | [static] |
Attach a 2D texture to the attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachTexture2D().
| static void oglplus::FramebufferOps::AttachTexture3D | ( | Target | target, |
| Property::Attachment | attachment, | ||
| Texture::Target | textarget, | ||
| const TextureOps & | texture, | ||
| GLint | level, | ||
| GLint | layer | ||
| ) | [static] |
Attach a 3D texture to the attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachTexture3D().
| static void oglplus::FramebufferOps::AttachTextureLayer | ( | Target | target, |
| Property::Attachment | attachment, | ||
| const TextureOps & | texture, | ||
| GLint | level, | ||
| GLint | layer | ||
| ) | [static] |
Attach a texture layer to the attachment point of target.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::AttachTextureLayer().
| void oglplus::FramebufferOps::Bind | ( | Target | target | ) | const |
Bind this framebuffer to the specified target.
| Error |
| static void oglplus::FramebufferOps::BindDefault | ( | Target | target | ) | [static] |
Binds the default framebuffer to the specified target.
| Error |
References OGLPLUS_VERIFY.
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::BindDefault().
| static bool oglplus::FramebufferOps::IsComplete | ( | Target | target | ) | [static] |
Returns true if the framebuffer is complete.
References Complete(), and Status().
Referenced by oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::IsComplete().
| static FramebufferStatus oglplus::FramebufferOps::Status | ( | Target | target | ) | [static] |
Checks the status of the framebuffer.
Returns one of the values in the FramebufferStatus enumeration. For complete framebuffers this member function returns Status::Complete.
References oglplus::EnumValueName(), and OGLPLUS_CHECK.
Referenced by Complete(), IsComplete(), and oglplus::BoundTemplate< Base, BaseParam, FramebufferOps >::Status().