VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
makVrv::DtIndirectGlTextureResidencyManager Class Reference

Enforces a single DtGlTextureResidencyManager across the whole indirect system/vrv (since the DtGlTextureResidencyManager class is in vrvGraphicsUtils and knows nothing about DtDe)

Inheritance diagram for makVrv::DtIndirectGlTextureResidencyManager:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtIndirectGlTextureResidencyManager ()
 
 DtIndirectGlTextureResidencyManager ()=delete
 
DtIndirectGlTextureResidencyManageroperator= (const DtIndirectGlTextureResidencyManager &rhs)=delete
 
 DtIndirectGlTextureResidencyManager (const DtIndirectGlTextureResidencyManager &rhs)=delete
 
virtual void makeResidentIfNecessary (void *gContext, GLuint textureID)
 
virtual bool makeNonResidentIfNecessary (void *gContext, GLuint textureID, bool canDelete)
 
virtual void deletingTexture (GLuint textureID)
 
virtual bool ensureTextureIsResident (GLuint textureID, GLuint64 textureAddress)
 
virtual GLuint64 gpuTextureAddress (GLuint textureID) const
 
virtual bool isTexture (GLuint textureID) const
 
virtual
DtGlTextureResidencyManager
manager (void)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static
DtIndirectGlTextureResidencyManager
instance (DtDe &de)
 

Protected Member Functions

 DtIndirectGlTextureResidencyManager (DtDe &de)
 

Static Protected Member Functions

static void registerInstance (DtIndirectGlTextureResidencyManager *manager, DtDe &de)
 
static
DtIndirectGlTextureResidencyManager
findInstance (DtDe &de)
 

Protected Attributes

DtDemyDe
 
DtGlTextureResidencyManagermyGlTextureResidencyManager
 

Constructor & Destructor Documentation

virtual makVrv::DtIndirectGlTextureResidencyManager::~DtIndirectGlTextureResidencyManager ( )
virtual

destructor

makVrv::DtIndirectGlTextureResidencyManager::DtIndirectGlTextureResidencyManager ( )
delete

not allowed

makVrv::DtIndirectGlTextureResidencyManager::DtIndirectGlTextureResidencyManager ( const DtIndirectGlTextureResidencyManager rhs)
delete

not allowed

makVrv::DtIndirectGlTextureResidencyManager::DtIndirectGlTextureResidencyManager ( DtDe de)
protected

cannot create directly

Member Function Documentation

static DtIndirectGlTextureResidencyManager& makVrv::DtIndirectGlTextureResidencyManager::instance ( DtDe de)
static

Access the singleton instance.

DtIndirectGlTextureResidencyManager& makVrv::DtIndirectGlTextureResidencyManager::operator= ( const DtIndirectGlTextureResidencyManager rhs)
delete

not allowed

virtual void makVrv::DtIndirectGlTextureResidencyManager::makeResidentIfNecessary ( void *  gContext,
GLuint  textureID 
)
virtual

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

virtual bool makVrv::DtIndirectGlTextureResidencyManager::makeNonResidentIfNecessary ( void *  gContext,
GLuint  textureID,
bool  canDelete 
)
virtual

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.

virtual void makVrv::DtIndirectGlTextureResidencyManager::deletingTexture ( GLuint  textureID)
virtual

Called from the GlDeleteObjectManager when the texture is about to be deleted.

virtual bool makVrv::DtIndirectGlTextureResidencyManager::ensureTextureIsResident ( GLuint  textureID,
GLuint64  textureAddress 
)
virtual

Checks to see if the given texture is GPU resident. If it is not a texture or not resident, then false is returned.

virtual GLuint64 makVrv::DtIndirectGlTextureResidencyManager::gpuTextureAddress ( GLuint  textureID) const
virtual

Get the Gpu address of a texture.

virtual bool makVrv::DtIndirectGlTextureResidencyManager::isTexture ( GLuint  textureID) const
virtual

check if the texture is in fact an OpenGL texture

virtual DtGlTextureResidencyManager* makVrv::DtIndirectGlTextureResidencyManager::manager ( void  )
virtual

access the actual manager

static void makVrv::DtIndirectGlTextureResidencyManager::registerInstance ( DtIndirectGlTextureResidencyManager manager,
DtDe de 
)
staticprotected

register the manager

static DtIndirectGlTextureResidencyManager* makVrv::DtIndirectGlTextureResidencyManager::findInstance ( DtDe de)
staticprotected

register if the manager is registered

Member Data Documentation

DtDe& makVrv::DtIndirectGlTextureResidencyManager::myDe
protected
DtGlTextureResidencyManager* makVrv::DtIndirectGlTextureResidencyManager::myGlTextureResidencyManager
protected

pointer to the internal gl residency manager


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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)