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

Method createTexture

Engine/source/gfx/gfxTextureManager.cpp:285–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285GFXTextureObject *GFXTextureManager::createTexture( GBitmap *bmp, const String &resourceName, GFXTextureProfile *profile, bool deleteBmp )
286{
287 AssertFatal(bmp, "GFXTextureManager::createTexture() - Got NULL bitmap!");
288
289 GFXTextureObject *cacheHit = _lookupTexture( resourceName, profile );
290 if( cacheHit != NULL)
291 {
292 // Con::errorf("Cached texture '%s'", (resourceName.isNotEmpty() ? resourceName.c_str() : "unknown"));
293 if (deleteBmp)
294 delete bmp;
295 return cacheHit;
296 }
297
298 return _createTexture( bmp, resourceName, profile, deleteBmp, NULL );
299}
300
301GFXTextureObject *GFXTextureManager::_createTexture( GBitmap *bmp,
302 const String &resourceName,

Callers 5

_updateMaterialsMethod · 0.45
setMethod · 0.45
setTextureMethod · 0.45
getTextureMethod · 0.45
getImageInfoMethod · 0.45

Calls 15

IsFileFunction · 0.85
loadFunction · 0.85
AddChangeNotificationFunction · 0.85
mFloorFunction · 0.85
mLog2Function · 0.85
mMaxFunction · 0.85
getFileNameMethod · 0.80
getWritableBitsMethod · 0.80
isPooledMethod · 0.80
insertEqualMethod · 0.80
dMemcpyFunction · 0.50
errorfFunction · 0.50

Tested by

no test coverage detected