MCPcopy Create free account
hub / github.com/c3d/tao3D / refresh

Method refresh

tao/texture_cache.cpp:449–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447
448
449void TextureCache::refresh()
450// ----------------------------------------------------------------------------
451// Purge stale images
452// ----------------------------------------------------------------------------
453{
454 // REVISIT: the current implementation purges all network images
455 foreach (GLuint id, fromId.keys())
456 {
457 CachedTexture * tex = fromId[id];
458 if (tex->networked)
459 tex->purge();
460 }
461}
462
463
464CachedTexture::Links *TextureCache::texLinksForLRU(CachedTexture *tex,

Callers 1

textureCacheRefreshMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected