globjects
1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.
|
Encapsulates texture attachments of a frame buffer object. More...
#include <globjects/include/globjects/AttachedTexture.h>
Public Member Functions | |
AttachedTexture (Framebuffer *fbo, gl::GLenum attachment, Texture *texture, gl::GLint level, gl::GLint layer=-1) | |
virtual bool | isTextureAttachment () const override |
Texture * | texture () |
const Texture * | texture () const |
gl::GLint | level () const |
bool | hasLayer () const |
gl::GLint | layer () const |
Public Member Functions inherited from globjects::FramebufferAttachment | |
FramebufferAttachment (Framebuffer *fbo, gl::GLenum attachment) | |
gl::GLenum | attachment () const |
gl::GLint | getParameter (gl::GLenum pname) 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 | |
ref_ptr< Texture > | m_texture |
gl::GLint | m_level |
gl::GLint | m_layer |
Protected Attributes inherited from globjects::FramebufferAttachment | |
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 () |
Encapsulates texture attachments of a frame buffer object.
This class is a link between a Texture and the FrameBufferObject it is attached to.
globjects::AttachedTexture::AttachedTexture | ( | Framebuffer * | fbo, |
gl::GLenum | attachment, | ||
Texture * | texture, | ||
gl::GLint | level, | ||
gl::GLint | layer = -1 |
||
) |
|
overridevirtual |
Reimplemented from globjects::FramebufferAttachment.
Texture* globjects::AttachedTexture::texture | ( | ) |
const Texture* globjects::AttachedTexture::texture | ( | ) | const |
gl::GLint globjects::AttachedTexture::level | ( | ) | const |
bool globjects::AttachedTexture::hasLayer | ( | ) | const |
gl::GLint globjects::AttachedTexture::layer | ( | ) | const |
|
protected |
|
protected |