AttachedTexture.h
Go to the documentation of this file.
#pragma once
#include <glbinding/gl/types.h>
#include <globjects/base/ref_ptr.h>
#include <globjects/globjects_api.h>
#include <globjects/FramebufferAttachment.h>
namespace globjects
{
class Texture;
class Framebuffer;
class GLOBJECTS_API AttachedTexture : public FramebufferAttachment
{
public:
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;
protected:
ref_ptr<Texture> m_texture;
gl::GLint m_level;
gl::GLint m_layer;
};
} // namespace globjects
globjects::AttachedTexture::m_level
gl::GLint m_level
Definition: AttachedTexture.h:43
globjects::AttachedTexture::m_layer
gl::GLint m_layer
Definition: AttachedTexture.h:44
globjects::ref_ptr
The ref_ptr class provides the interface for a reference pointer.
Definition: LogMessageBuilder.h:20
globjects::AttachedTexture
Encapsulates texture attachments of a frame buffer object.
Definition: AttachedTexture.h:26
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Framebuffer
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition: Framebuffer.h:46
globjects::AttachedTexture::m_texture
ref_ptr< Texture > m_texture
Definition: AttachedTexture.h:42
ref_ptr.h
FramebufferAttachment.h
globjects::FramebufferAttachment
Wraps attachments to a FrameBufferObject.
Definition: FramebufferAttachment.h:29
globjects::Texture
Wraps OpenGL texture objects. A Texture provides both interfaces to bind them for the OpenGL pipeline...
Definition: Texture.h:30