MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / releaseCubemap

Method releaseCubemap

Engine/source/gfx/gfxTextureManager.cpp:1529–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1527}
1528
1529void GFXTextureManager::releaseCubemap( GFXCubemap *cubemap )
1530{
1531 if ( mTextureManagerState == GFXTextureManager::Dead )
1532 return;
1533
1534 const String &path = cubemap->getPath();
1535
1536 CubemapTable::Iterator iter = mCubemapTable.find( path );
1537 if ( iter != mCubemapTable.end() && iter->value == cubemap )
1538 mCubemapTable.erase( iter );
1539
1540 // If we have a path for the texture then
1541 // remove change notifications for it.
1542 //Path texPath = texture->getPath();
1543 //if ( !texPath.isEmpty() )
1544 //FS::RemoveChangeNotification( texPath, this, &GFXTextureManager::_onFileChanged );
1545}
1546
1547void GFXTextureManager::_onFileChanged( const Torque::Path &path )
1548{

Callers 1

~GFXCubemapMethod · 0.80

Calls 4

getPathMethod · 0.45
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected