globjects  1.1.0.2f0c753c8647
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::Referenced globjects::HeapOnly

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
 
- 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< 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

- Protected Member Functions inherited from globjects::Referenced
virtual ~Referenced ()
 
- Protected Member Functions inherited from globjects::HeapOnly
virtual ~HeapOnly ()
 

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

ref_ptr<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: