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

Method hashFind

Engine/source/gfx/gfxTextureManager.cpp:1333–1347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1331}
1332
1333GFXTextureObject* GFXTextureManager::hashFind( const String &name )
1334{
1335 if ( name.isEmpty() )
1336 return NULL;
1337
1338 U32 key = name.getHashCaseInsensitive() % mHashCount;
1339 GFXTextureObject *walk = mHashTable[key];
1340 for(; walk; walk = walk->mHashNext)
1341 {
1342 if( walk->mTextureLookupName.equal( name, String::NoCase ) )
1343 break;
1344 }
1345
1346 return walk;
1347}
1348
1349void GFXTextureManager::freeTexture(GFXTextureObject *texture, bool zombify)
1350{

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.45
equalMethod · 0.45

Tested by

no test coverage detected