VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Static Public Member Functions | Static Protected Attributes | Private Member Functions
makVrv::DtGLTextureUtils Class Reference

helper class to handle texture residency More...

Public Types

typedef std::map< unsigned int,
int
TexIDToCount
 
typedef std::map< void
*, TexIDToCount
ContextToTexID
 

Static Public Member Functions

static void makeResidentIfNecessary (void *gContext, GLuint textureID)
 Check if a texture is resident in a given context. If not, make it resident. More...
 
static bool makeNonResidentIfNecessary (void *gContext, GLuint textureID, bool canDelete)
 Make a texture non-resident in GPU memory If canDelete=true, the function will try to delete the texture and return true if it succeeded in deleting the texture. More...
 
static GLuint64 gpuTextureAddress (GLuint textureID)
 Get the Gpu address of a texture. More...
 
static bool isTexture (GLuint textureID)
 check if the texture is infact an OpenGL texture More...
 

Static Protected Attributes

static ContextToTexID theTextureCountByContext
 
static TexIDToCount theTextureCountAcrossContexts
 

Private Member Functions

 DtGLTextureUtils ()=delete
 not allowed More...
 
 DtGLTextureUtils (const DtGLTextureUtils &)=delete
 not allowed More...
 
DtGLTextureUtilsoperator= (const DtGLTextureUtils &)=delete
 not allowed More...
 
virtual ~DtGLTextureUtils ()=delete
 not allowed More...
 

Detailed Description

helper class to handle texture residency

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtGLTextureUtils::DtGLTextureUtils ( )
privatedelete

not allowed

makVrv::DtGLTextureUtils::DtGLTextureUtils ( const DtGLTextureUtils )
privatedelete

not allowed

virtual makVrv::DtGLTextureUtils::~DtGLTextureUtils ( )
privatevirtualdelete

not allowed

Member Function Documentation

DtGLTextureUtils& makVrv::DtGLTextureUtils::operator= ( const DtGLTextureUtils )
privatedelete

not allowed

static void makVrv::DtGLTextureUtils::makeResidentIfNecessary ( void *  gContext,
GLuint  textureID 
)
static

Check if a texture is resident in a given context. If not, make it resident.

static bool makVrv::DtGLTextureUtils::makeNonResidentIfNecessary ( void *  gContext,
GLuint  textureID,
bool  canDelete 
)
static

Make a texture non-resident in GPU memory If canDelete=true, the function will try to delete the texture and return true if it succeeded in deleting the texture.

static GLuint64 makVrv::DtGLTextureUtils::gpuTextureAddress ( GLuint  textureID)
static

Get the Gpu address of a texture.

static bool makVrv::DtGLTextureUtils::isTexture ( GLuint  textureID)
static

check if the texture is infact an OpenGL texture

Member Data Documentation

ContextToTexID makVrv::DtGLTextureUtils::theTextureCountByContext
staticprotected
TexIDToCount makVrv::DtGLTextureUtils::theTextureCountAcrossContexts
staticprotected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)