Loading...
Searching...
No Matches
TextureHandle.h
Go to the documentation of this file.
#pragma once
#include <glm/fwd.hpp>
#include <glbinding/gl/types.h>
#include <globjects/globjects_api.h>
namespace globjects
{
class Texture;
class Sampler;
class GLOBJECTS_API TextureHandle
{
public:
TextureHandle();
TextureHandle(gl::GLuint64 handle);
explicit TextureHandle(const Texture * texture);
TextureHandle(const Texture * texture, const Sampler * sampler);
void makeResident();
void makeNonResident();
bool isResident() const;
gl::GLuint64 handle() const;
operator gl::GLuint64() const;
glm::uvec2 asUVec2() const;
operator glm::uvec2() const;
private:
gl::GLuint64 m_handle;
};
} // namespace globjects
globjects::Sampler
Wraps OpenGL sampler objects.
Definition Sampler.h:19
globjects::TextureHandle
Definition TextureHandle.h:19
globjects::TextureHandle::asUVec2
glm::uvec2 asUVec2() const
globjects::TextureHandle::makeNonResident
void makeNonResident()
globjects::TextureHandle::TextureHandle
TextureHandle(gl::GLuint64 handle)
globjects::TextureHandle::makeResident
void makeResident()
globjects::TextureHandle::TextureHandle
TextureHandle(const Texture *texture, const Sampler *sampler)
globjects::TextureHandle::TextureHandle
TextureHandle(const Texture *texture)
globjects::TextureHandle::TextureHandle
TextureHandle()
globjects::TextureHandle::isResident
bool isResident() const
globjects::TextureHandle::handle
gl::GLuint64 handle() const
globjects::Texture
Wraps OpenGL texture objects. A Texture provides both interfaces to bind them for the OpenGL pipeline...
Definition Texture.h:31
globjects
Contains all the classes that wrap OpenGL functionality.