globjects
1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
|
Wraps attachments to a FrameBufferObject. More...
#include <globjects/include/globjects/FramebufferAttachment.h>
Public Member Functions | |
FramebufferAttachment (Framebuffer *fbo, gl::GLenum attachment) | |
gl::GLenum | attachment () const |
gl::GLint | getParameter (gl::GLenum pname) const |
virtual bool | isTextureAttachment () const |
virtual bool | isRenderBufferAttachment () const |
AttachedTexture * | asTextureAttachment () |
const AttachedTexture * | asTextureAttachment () const |
AttachedRenderbuffer * | asRenderBufferAttachment () |
const AttachedRenderbuffer * | asRenderBufferAttachment () const |
std::string | attachmentString () const |
Public Member Functions inherited from globjects::Referenced | |
Referenced () | |
void | ref () const |
void | unref () const |
int | refCounter () const |
Public Member Functions inherited from globjects::HeapOnly | |
HeapOnly () | |
void | destroy () const |
Protected Attributes | |
Framebuffer * | m_fbo |
gl::GLenum | m_attachment |
Additional Inherited Members | |
Protected Member Functions inherited from globjects::Referenced | |
virtual | ~Referenced () |
Protected Member Functions inherited from globjects::HeapOnly | |
virtual | ~HeapOnly () |
Wraps attachments to a FrameBufferObject.
Normally, FrameBufferAttachments are created using the API of FrameBufferObject.
globjects::FramebufferAttachment::FramebufferAttachment | ( | Framebuffer * | fbo, |
gl::GLenum | attachment | ||
) |
gl::GLenum globjects::FramebufferAttachment::attachment | ( | ) | const |
gl::GLint globjects::FramebufferAttachment::getParameter | ( | gl::GLenum | pname | ) | const |
|
virtual |
Reimplemented in globjects::AttachedTexture.
|
virtual |
Reimplemented in globjects::AttachedRenderbuffer.
AttachedTexture* globjects::FramebufferAttachment::asTextureAttachment | ( | ) |
const AttachedTexture* globjects::FramebufferAttachment::asTextureAttachment | ( | ) | const |
AttachedRenderbuffer* globjects::FramebufferAttachment::asRenderBufferAttachment | ( | ) |
const AttachedRenderbuffer* globjects::FramebufferAttachment::asRenderBufferAttachment | ( | ) | const |
std::string globjects::FramebufferAttachment::attachmentString | ( | ) | const |
|
protected |
|
protected |