![]() |
globjects
2.0.0.630135941c42
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 |
Protected Attributes | |
| 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 | |
Static Public Member Functions inherited from globjects::Instantiator< AttachedTexture > | |
| static std::unique_ptr< AttachedTexture > | create (Args &&... args) |
| static std::unique_ptr< AttachedTexture > | fromId (gl::GLuint id, Args &&... args) |
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 |
|
protected |
1.10.0