Definition at line 104 of file OOTexture.m.
◆ 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
References OOGenerateTextureCacheKey(), and OOInterpretTextureSpecifier().
◆ autoreleaseInContext:
- (id) autoreleaseInContext: |
|
(NSString *) | context |
|
Extends class OOTexture.
Definition at line 924 of file OOTexture.m.
596 :(NSString *)context
597{
598 if (_trace)
599 {
600 if (context)
OOLog(
@"texture.allocTrace.autoreleased",
@"Texture %p autoreleased - %@.",
self, context);
601 else OOLog(
@"texture.allocTrace.autoreleased",
@"Texture %p autoreleased.",
self);
602 }
603
604 return [super autorelease];
605}
#define OOLog(class, format,...)
◆ checkExtensions
◆ existingTextureForKey:
+ (OOTexture *) existingTextureForKey: |
|
(NSString *) | key |
|
◆ forceRebind
Extends class OOTexture.
Definition at line 924 of file OOTexture.m.
439{
441}
#define OOLogGenericSubclassResponsibility()
◆ releaseInContext:
- (void) releaseInContext: |
|
(NSString *) | context |
|
Extends class OOTexture.
Definition at line 924 of file OOTexture.m.
584 :(NSString *)context
585{
586 if (_trace)
587 {
588 if (context)
OOLog(
@"texture.allocTrace.release",
@"Texture %p released (retain count -> %lu) - %@.",
self, [
self retainCount] - 1, context);
589 else OOLog(
@"texture.allocTrace.release",
@"Texture %p released (retain count -> %lu).",
self, [
self retainCount] - 1);
590 }
591
592 [super release];
593}
◆ retainInContext:
- (id) retainInContext: |
|
(NSString *) | context |
|
Extends class OOTexture.
Definition at line 924 of file OOTexture.m.
572 :(NSString *)context
573{
574 if (_trace)
575 {
576 if (context)
OOLog(
@"texture.allocTrace.retain",
@"Texture %p retained (retain count -> %lu) - %@.",
self, [
self retainCount] + 1, context);
577 else OOLog(
@"texture.allocTrace.retain",
@"Texture %p retained (retain count -> %lu).",
self, [
self retainCount] + 1);
578 }
579
580 return [super retain];
581}
The documentation for this category was generated from the following file: