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

Method hashInsert

Engine/source/gfx/gfxTextureManager.cpp:1305–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1303}
1304
1305void GFXTextureManager::hashInsert( GFXTextureObject *object )
1306{
1307 if ( object->mTextureLookupName.isEmpty() )
1308 return;
1309
1310 U32 key = object->mTextureLookupName.getHashCaseInsensitive() % mHashCount;
1311 object->mHashNext = mHashTable[key];
1312 mHashTable[key] = object;
1313}
1314
1315void GFXTextureManager::hashRemove( GFXTextureObject *object )
1316{

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.45

Tested by

no test coverage detected