globjects  2.0.0.690708773bba
Strict OpenGL objects wrapper.
globjects::AttachedTexture Class Reference

Encapsulates texture attachments of a frame buffer object. More...

#include <globjects/include/globjects/AttachedTexture.h>

Inheritance diagram for globjects::AttachedTexture:
globjects::FramebufferAttachment globjects::Instantiator< AttachedTexture >

Public Member Functions

 AttachedTexture (Framebuffer *fbo, gl::GLenum attachment, Texture *texture, gl::GLint level, gl::GLint layer=-1)
 
virtual bool isTextureAttachment () const override
 
Texturetexture ()
 
const Texturetexture () 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
 
AttachedTextureasTextureAttachment ()
 
const AttachedTextureasTextureAttachment () const
 
AttachedRenderbufferasRenderBufferAttachment ()
 
const AttachedRenderbufferasRenderBufferAttachment () const
 
std::string attachmentString () const
 

Protected Attributes

Texturem_texture
 
gl::GLint m_level
 
gl::GLint m_layer
 
- Protected Attributes inherited from globjects::FramebufferAttachment
Framebufferm_fbo
 
gl::GLenum m_attachment
 

Additional Inherited Members

- Static Public Member Functions inherited from globjects::Instantiator< AttachedTexture >
static std::unique_ptr< AttachedTexturecreate (Args &&...args)
 
static std::unique_ptr< AttachedTexturefromId (gl::GLuint id, Args &&...args)
 

Detailed Description

Encapsulates texture attachments of a frame buffer object.

This class is a link between a Texture and the FrameBufferObject it is attached to.

See also
Texture
Framebuffer

Constructor & Destructor Documentation

globjects::AttachedTexture::AttachedTexture ( Framebuffer fbo,
gl::GLenum  attachment,
Texture texture,
gl::GLint  level,
gl::GLint  layer = -1 
)

Member Function Documentation

virtual bool globjects::AttachedTexture::isTextureAttachment ( ) const
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

Member Data Documentation

Texture* globjects::AttachedTexture::m_texture
protected
gl::GLint globjects::AttachedTexture::m_level
protected
gl::GLint globjects::AttachedTexture::m_layer
protected

The documentation for this class was generated from the following file: