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

Method hashRemove

Engine/source/gfx/gfxTextureManager.cpp:1315–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313}
1314
1315void GFXTextureManager::hashRemove( GFXTextureObject *object )
1316{
1317 if ( object->mTextureLookupName.isEmpty() )
1318 return;
1319
1320 U32 key = object->mTextureLookupName.getHashCaseInsensitive() % mHashCount;
1321 GFXTextureObject **walk = &mHashTable[key];
1322 while(*walk)
1323 {
1324 if(*walk == object)
1325 {
1326 *walk = object->mHashNext;
1327 break;
1328 }
1329 walk = &((*walk)->mHashNext);
1330 }
1331}
1332
1333GFXTextureObject* GFXTextureManager::hashFind( const String &name )
1334{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.45

Tested by

no test coverage detected