globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
AttachedTexture.h
Go to the documentation of this file.
1
2#pragma once
3
4#include <glbinding/gl/types.h>
5
7
8#include <globjects/globjects_api.h>
10
11
12namespace globjects
13{
14
15
16class Texture;
17class Framebuffer;
18
26class GLOBJECTS_API AttachedTexture : public FramebufferAttachment
27{
28public:
29 AttachedTexture(Framebuffer * fbo, gl::GLenum attachment, Texture * texture, gl::GLint level, gl::GLint layer = -1);
30
31 virtual bool isTextureAttachment() const override;
32
34 const Texture * texture() const;
35
36 gl::GLint level() const;
37
38 bool hasLayer() const;
39 gl::GLint layer() const;
40
41protected:
43 gl::GLint m_level;
44 gl::GLint m_layer;
45};
46
47
48} // namespace globjects
Encapsulates texture attachments of a frame buffer object.
Definition AttachedTexture.h:27
ref_ptr< Texture > m_texture
Definition AttachedTexture.h:42
const Texture * texture() const
gl::GLint level() const
gl::GLint layer() const
virtual bool isTextureAttachment() const override
gl::GLint m_layer
Definition AttachedTexture.h:44
gl::GLint m_level
Definition AttachedTexture.h:43
AttachedTexture(Framebuffer *fbo, gl::GLenum attachment, Texture *texture, gl::GLint level, gl::GLint layer=-1)
Wraps attachments to a FrameBufferObject.
Definition FramebufferAttachment.h:30
Enables creation of arbitrary render targets that are not directly drawn on the screen.
Definition Framebuffer.h:47
Wraps OpenGL texture objects. A Texture provides both interfaces to bind them for the OpenGL pipeline...
Definition Texture.h:31
The ref_ptr class provides the interface for a reference pointer.
Definition ref_ptr.h:33
Contains all the classes that wrap OpenGL functionality.