GlobeEngine
ge::TextureHandle Class Reference

#include <TextureHandle.h>

Inheritance diagram for ge::TextureHandle:
ge::TextureType< D, T, PROPERTIES > ge::TextureType< 1, T, PROPERTIES > ge::TextureType< 2, GLubyte, TextureProperties< TextureWrapParameter< 2 > > > ge::TextureType< 2, T, PROPERTIES > ge::TextureType< 3, T, PROPERTIES > ge::Texture1D< T, PROPERTIES > ge::Texture2D< GLubyte, TextureProperties< TextureWrapParameter< 2 > > > ge::Texture2D< T, PROPERTIES > ge::Texture3D< T, PROPERTIES > geData::ColorisationTable ge::DepthTexture< GLubyte, TextureProperties< TextureWrapParameter< 2 > > > ge::DepthTexture< T, PROPERTIES >

Public Types

enum  eTEXTURE_TYPES {
  eNOTLOADED, eEMPTYTEXTURE, eEMPTYTEXTURE_R32, eEMPTYHDRTEXTURE,
  eEMPTYPICKINGTEXTURE, eEMPTY1DTEXTURE, eTEXTURE, eTEXTURE_R16,
  eTEXTURE_R32, eSHADOWMAP, eSTENCILTEX, eBUMPMAP,
  e1DTEXTUR, e3DTEXTUR
}
 
enum  BindlessState {
  NOHANDLE = 0, HANDLE, BINDLESSHANDLE, RESIDENT,
  NOTRESIDENT, INUSE
}
 

Public Member Functions

 TextureHandle ()
 
virtual ~TextureHandle ()
 
void clear ()
 
void createHandle (GLenum _target)
 
void createFromExistingHandle (GLenum _target, GLuint _handle)
 
void bind (GLint _unit=-1) const
 
void unbind (GLint _unit=-1) const
 
GLenum getTarget () const
 
void overrideHandle (GLuint _handle)
 
GLuint getHandle () const
 
void deleteHandle ()
 
void bindTextureToShader (GLuint _shaderUnit, GLenum _internalFormat, GLenum _access=GL_READ_WRITE, GLint _texlevel=0, GLboolean _islayered=GL_FALSE, GLint _texlayer=0)
 
GLuint64 getBindlessHandle () const
 
BindlessState getBindlessState () const
 
void setBindlessHandle ()
 
void makeTextureResident ()
 
void makeTextureNonResident ()
 

Static Public Member Functions

static void bindTextureHandle2DToUnit (GLuint _handle, GLint _unit)
 
static void unbindTextureHandle2DToUnit (GLuint _handle, GLint _unit)
 

Protected Member Functions

void getOpenGLError (std::string _input)
 

Protected Attributes

GLenum target
 
GLuint handle
 
GLuint64 bindlessHandle
 
BindlessState bindlessState
 

Member Enumeration Documentation

Enumerator
NOHANDLE 
HANDLE 
BINDLESSHANDLE 
RESIDENT 
NOTRESIDENT 
INUSE 
Enumerator
eNOTLOADED 
eEMPTYTEXTURE 
eEMPTYTEXTURE_R32 
eEMPTYHDRTEXTURE 
eEMPTYPICKINGTEXTURE 
eEMPTY1DTEXTURE 
eTEXTURE 
eTEXTURE_R16 
eTEXTURE_R32 
eSHADOWMAP 
eSTENCILTEX 
eBUMPMAP 
e1DTEXTUR 
e3DTEXTUR 

Constructor & Destructor Documentation

ge::TextureHandle::TextureHandle ( )
ge::TextureHandle::~TextureHandle ( )
virtual

Member Function Documentation

void ge::TextureHandle::bind ( GLint  _unit = -1) const
void ge::TextureHandle::bindTextureHandle2DToUnit ( GLuint  _handle,
GLint  _unit 
)
static
void ge::TextureHandle::bindTextureToShader ( GLuint  _shaderUnit,
GLenum  _internalFormat,
GLenum  _access = GL_READ_WRITE,
GLint  _texlevel = 0,
GLboolean  _islayered = GL_FALSE,
GLint  _texlayer = 0 
)
void ge::TextureHandle::clear ( )
void ge::TextureHandle::createFromExistingHandle ( GLenum  _target,
GLuint  _handle 
)
void ge::TextureHandle::createHandle ( GLenum  _target)
void ge::TextureHandle::deleteHandle ( )
GLuint64 ge::TextureHandle::getBindlessHandle ( ) const
TextureHandle::BindlessState ge::TextureHandle::getBindlessState ( ) const
GLuint ge::TextureHandle::getHandle ( ) const
void ge::TextureHandle::getOpenGLError ( std::string  _input)
protected
GLenum ge::TextureHandle::getTarget ( ) const
void ge::TextureHandle::makeTextureNonResident ( )
void ge::TextureHandle::makeTextureResident ( )
void ge::TextureHandle::overrideHandle ( GLuint  _handle)
void ge::TextureHandle::setBindlessHandle ( )
void ge::TextureHandle::unbind ( GLint  _unit = -1) const
void ge::TextureHandle::unbindTextureHandle2DToUnit ( GLuint  _handle,
GLint  _unit 
)
static

Member Data Documentation

GLuint64 ge::TextureHandle::bindlessHandle
protected
BindlessState ge::TextureHandle::bindlessState
protected
GLuint ge::TextureHandle::handle
protected
GLenum ge::TextureHandle::target
protected

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