#include <OOTextureInternal.h>
Definition at line 34 of file OOTextureInternal.h.
◆ addToCaches
Extends class OOTexture.
Definition at line 923 of file OOTexture.m.
444{
445#ifndef OOTEXTURE_NO_CACHE
446 NSString *cacheKey = [self cacheKey];
447 if (cacheKey ==
nil)
return;
448
449
451
453 [sLiveTextureCache setObject:[NSValue valueWithPointer:self] forKey:cacheKey];
455
456
458 {
460 [sRecentTextures setName:@"recent textures"];
461 [sRecentTextures setAutoPrune:YES];
462 [sRecentTextures setPruneThreshold:kRecentTexturesCount];
463 }
464
466 [sRecentTextures setObject:self forKey:cacheKey];
468#endif
469}
#define CLEAR_TRACE_CONTEXT()
#define SET_TRACE_CONTEXT(str)
static OOCache * sRecentTextures
static NSMutableDictionary * sLiveTextureCache
◆ existingTextureForKey:
| + (OOTexture *) existingTextureForKey: |
|
(NSString *) |
key |
|
◆ removeFromCaches
| - (void) removeFromCaches |
|
|
|
Extends class OOTexture.
Definition at line 923 of file OOTexture.m.
473{
474#ifndef OOTEXTURE_NO_CACHE
475 NSString *cacheKey = [self cacheKey];
476 if (cacheKey ==
nil)
return;
477
478 [sLiveTextureCache removeObjectForKey:cacheKey];
480 {
481
482
483
484
485
486
487
488
489
490
491
492
493 NSAssert2(0, @"Texture retain count error for %@; cacheKey is %@.", self, cacheKey);
494
495 [sRecentTextures removeObjectForKey:cacheKey];
496 }
497#endif
498}
The documentation for this category was generated from the following file: