#include <OOTextureInternal.h>
Definition at line 34 of file OOTextureInternal.h.
◆ addToCaches
Extends class OOTexture.
Definition at line 924 of file OOTexture.m.
445{
446#ifndef OOTEXTURE_NO_CACHE
447 NSString *cacheKey = [self cacheKey];
448 if (cacheKey ==
nil)
return;
449
450
452
454 [sLiveTextureCache setObject:[NSValue valueWithPointer:self] forKey:cacheKey];
456
457
459 {
461 [sRecentTextures setName:@"recent textures"];
462 [sRecentTextures setAutoPrune:YES];
463 [sRecentTextures setPruneThreshold:kRecentTexturesCount];
464 }
465
467 [sRecentTextures setObject:self forKey:cacheKey];
469#endif
470}
#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 924 of file OOTexture.m.
474{
475#ifndef OOTEXTURE_NO_CACHE
476 NSString *cacheKey = [self cacheKey];
477 if (cacheKey ==
nil)
return;
478
479 [sLiveTextureCache removeObjectForKey:cacheKey];
481 {
482
483
484
485
486
487
488
489
490
491
492
493
494 NSAssert2(0, @"Texture retain count error for %@; cacheKey is %@.", self, cacheKey);
495
496 [sRecentTextures removeObjectForKey:cacheKey];
497 }
498#endif
499}
The documentation for this category was generated from the following file: