Oolite
Loading...
Searching...
No Matches
OOTexture Class Reference

#include <OOTexture.h>

+ Inheritance diagram for OOTexture:
+ Collaboration diagram for OOTexture:

Instance Methods

(void) - apply
 
(void) - ensureFinishedLoading
 
(BOOL) - isFinishedLoading
 
(NSString *) - cacheKey
 
(NSSize) - dimensions
 
(NSSize) - originalDimensions
 
(BOOL) - isMipMapped
 
(OOPixMap- copyPixMapRepresentation
 
(BOOL) - isRectangleTexture
 
(BOOL) - isCubeMap
 
(NSSize) - texCoordsScale
 
(GLint) - glTextureName
 
(void) - setTrace:
 
(size_t) - dataSize
 
(NSString *) - name
 
(id) - init [implementation]
 
(void) - dealloc [implementation]
 
(void) - forceRebind [implementation]
 
(void) - addToCaches [implementation]
 
(void) - removeFromCaches [implementation]
 
(id) - retainInContext: [implementation]
 
(void) - releaseInContext: [implementation]
 
(id) - autoreleaseInContext: [implementation]
 
(id) - retain [implementation]
 
(oneway void) - release [implementation]
 
(id) - autorelease [implementation]
 
- Instance Methods inherited from OOWeakRefObject
(id) - weakSelf
 
(id) - weakRetain [implementation]
 
(void) - weakRefDied: [implementation]
 
- Instance Methods inherited from <OOWeakReferenceSupport>
(id) - OO_RETURNS_RETAINED
 

Class Methods

(id) + textureWithName:inFolder:options:anisotropy:lodBias:
 
(id) + textureWithName:inFolder:
 
(id) + textureWithConfiguration:
 
(id) + textureWithConfiguration:extraOptions:
 
(id) + nullTexture
 
(id) + textureWithGenerator:
 
(id) + textureWithGenerator:enqueue:
 
(void) + applyNone
 
(void) + clearCache
 
(void) + rebindAllTextures
 
(NSArray *) + cachedTexturesByAge
 
(NSSet *) + allTextures
 
(OOTexture *) + existingTextureForKey: [implementation]
 
(void) + checkExtensions [implementation]
 

Protected Attributes

BOOL _trace
 
- Protected Attributes inherited from OOWeakRefObject
OOWeakReferenceweakSelf
 

Detailed Description

Definition at line 116 of file OOTexture.h.

Method Documentation

◆ addToCaches

- (void) addToCaches
implementation

Provided by category OOTexture(SubclassInterface).

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 // Add self to in-use textures cache, wrapped in an NSValue so the texture isn't retained by the cache.
450 if (EXPECT_NOT(sLiveTextureCache == nil)) sLiveTextureCache = [[NSMutableDictionary alloc] init];
451
452 SET_TRACE_CONTEXT(@"in-use textures cache - SHOULD NOT RETAIN");
453 [sLiveTextureCache setObject:[NSValue valueWithPointer:self] forKey:cacheKey];
455
456 // Add self to recent textures cache.
458 {
459 sRecentTextures = [[OOCache alloc] init];
460 [sRecentTextures setName:@"recent textures"];
461 [sRecentTextures setAutoPrune:YES];
462 [sRecentTextures setPruneThreshold:kRecentTexturesCount];
463 }
464
465 SET_TRACE_CONTEXT(@"adding to recent textures cache");
466 [sRecentTextures setObject:self forKey:cacheKey];
468#endif
469}
#define EXPECT_NOT(x)
return nil
#define CLEAR_TRACE_CONTEXT()
Definition OOTexture.m:129
#define SET_TRACE_CONTEXT(str)
Definition OOTexture.m:125
static OOCache * sRecentTextures
Definition OOTexture.m:97
static NSMutableDictionary * sLiveTextureCache
Definition OOTexture.m:95
NSString * cacheKey()
Definition OOTexture.m:300

References OOGenerateTextureCacheKey(), and OOInterpretTextureSpecifier().

+ Here is the call graph for this function:

◆ allTextures

+ (NSSet *) allTextures

Definition at line 923 of file OOTexture.m.

406{
407 NSMutableSet *result = [NSMutableSet setWithCapacity:[sAllLiveTextures count]];
408 NSValue *box = nil;
409 foreach (box, sAllLiveTextures)
410 {
411 [result addObject:[box pointerValue]];
412 }
413
414 return result;
415}
static NSMutableSet * sAllLiveTextures
Definition OOTexture.m:96

◆ apply

- (void) apply

Reimplemented in OOConcreteTexture, and OONullTexture.

Provided by category OOTexture(SubclassResponsibilities).

Definition at line 923 of file OOTexture.m.

270{
272}
#define OOLogGenericSubclassResponsibility()
Definition OOLogging.h:129

Referenced by HeadUpDisplay::OODrawPlanetInfo, and HeadUpDisplay::OOStartDrawingStrings.

+ Here is the caller graph for this function:

◆ applyNone

+ (void) applyNone

Definition at line 923 of file OOTexture.m.

276{
278 OOGL(glBindTexture(GL_TEXTURE_2D, 0));
279#if OO_TEXTURE_CUBE_MAP
280 if (OOCubeMapsAvailable()) OOGL(glBindTexture(GL_TEXTURE_CUBE_MAP, 0));
281#endif
282
283#if GL_EXT_texture_lod_bias
284 if (gOOTextureInfo.textureLODBiasAvailable) OOGL(glTexEnvf(GL_TEXTURE_FILTER_CONTROL_EXT, GL_TEXTURE_LOD_BIAS_EXT, 0));
285#endif
286}
#define OO_ENTER_OPENGL()
#define OOGL(statement)
Definition OOOpenGL.h:251
BOOL OOCubeMapsAvailable(void)
Definition OOTexture.m:687
OOTextureInfo gOOTextureInfo
Definition OOTexture.m:101
unsigned textureLODBiasAvailable

Referenced by HeadUpDisplay::OODrawPlanetInfo, and HeadUpDisplay::OOStopDrawingStrings.

+ Here is the caller graph for this function:

◆ autorelease

- (id) autorelease
implementation

Reimplemented in OONullTexture.

Definition at line 923 of file OOTexture.m.

620{
621 return [self autoreleaseInContext:sGlobalTraceContext];
622}

◆ autoreleaseInContext:

- (id) autoreleaseInContext: (NSString *)  context
implementation

Provided by category OOTexture(OOPrivate).

Definition at line 923 of file OOTexture.m.

595 :(NSString *)context
596{
597 if (_trace)
598 {
599 if (context) OOLog(@"texture.allocTrace.autoreleased", @"Texture %p autoreleased - %@.", self, context);
600 else OOLog(@"texture.allocTrace.autoreleased", @"Texture %p autoreleased.", self);
601 }
602
603 return [super autorelease];
604}
#define OOLog(class, format,...)
Definition OOLogging.h:88
BOOL _trace
Definition OOTexture.h:120

◆ cachedTexturesByAge

+ (NSArray *) cachedTexturesByAge

Definition at line 923 of file OOTexture.m.

400{
401 return [sRecentTextures objectsByAge];
402}

◆ cacheKey

- (NSString *) cacheKey

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

301{
302 return nil;
303}

◆ checkExtensions

+ (void) checkExtensions
implementation

Provided by category OOTexture(OOPrivate).

Definition at line 923 of file OOTexture.m.

516{
518
519 sCheckedExtensions = YES;
520
522 BOOL ver120 = [extMgr versionIsAtLeastMajor:1 minor:2];
523 BOOL ver130 = [extMgr versionIsAtLeastMajor:1 minor:3];
524
525#if GL_EXT_texture_filter_anisotropic
526 gOOTextureInfo.anisotropyAvailable = [extMgr haveExtension:@"GL_EXT_texture_filter_anisotropic"];
527 OOGL(glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &gOOTextureInfo.anisotropyScale));
528 gOOTextureInfo.anisotropyScale *= OOClamp_0_1_f([[NSUserDefaults standardUserDefaults] oo_floatForKey:@"texture-anisotropy-scale" defaultValue:0.5]);
529#endif
530
531#ifdef GL_CLAMP_TO_EDGE
532 gOOTextureInfo.clampToEdgeAvailable = ver120 || [extMgr haveExtension:@"GL_SGIS_texture_edge_clamp"];
533#endif
534
535#if OO_GL_CLIENT_STORAGE
536 gOOTextureInfo.clientStorageAvailable = [extMgr haveExtension:@"GL_APPLE_client_storage"];
537#endif
538
539 gOOTextureInfo.textureMaxLevelAvailable = ver120 || [extMgr haveExtension:@"GL_SGIS_texture_lod"];
540
541#if GL_EXT_texture_lod_bias
542 if ([[NSUserDefaults standardUserDefaults] oo_boolForKey:@"use-texture-lod-bias" defaultValue:YES])
543 {
544 gOOTextureInfo.textureLODBiasAvailable = [extMgr haveExtension:@"GL_EXT_texture_lod_bias"];
545 }
546 else
547 {
549 }
550#endif
551
552#if GL_EXT_texture_rectangle
553 gOOTextureInfo.rectangleTextureAvailable = [extMgr haveExtension:@"GL_EXT_texture_rectangle"];
554#endif
555
556#if OO_TEXTURE_CUBE_MAP
557 if (![[NSUserDefaults standardUserDefaults] boolForKey:@"disable-cube-maps"])
558 {
559 gOOTextureInfo.cubeMapAvailable = ver130 || [extMgr haveExtension:@"GL_ARB_texture_cube_map"];
560 }
561 else
562 {
564 }
565
566#endif
567}
static BOOL sCheckedExtensions
Definition OOTexture.m:100
BOOL versionIsAtLeastMajor:minor:(unsigned maj,[minor] unsigned min)
OOOpenGLExtensionManager * sharedManager()
BOOL haveExtension:(NSString *extension)
unsigned clientStorageAvailable
unsigned textureMaxLevelAvailable
unsigned anisotropyAvailable
unsigned clampToEdgeAvailable
unsigned cubeMapAvailable
unsigned rectangleTextureAvailable

◆ clearCache

+ (void) clearCache

Definition at line 923 of file OOTexture.m.

358{
359 /* Does not clear sAllLiveTextures - that really must refer to all
360 live texture objects.
361 */
362 SET_TRACE_CONTEXT(@"clearing sLiveTextureCache");
363 [sLiveTextureCache autorelease];
365
366 SET_TRACE_CONTEXT(@"clearing sRecentTextures");
367 [sRecentTextures autorelease];
370}

◆ copyPixMapRepresentation

- (struct OOPixMap) copyPixMapRepresentation

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

327{
328 return kOONullPixMap;
329}
const OOPixMap kOONullPixMap
Definition OOPixMap.m:31

◆ dataSize

- (size_t) dataSize

Definition at line 923 of file OOTexture.m.

419{
420 NSSize dimensions = [self dimensions];
421 size_t size = dimensions.width * dimensions.height;
422 if ([self isCubeMap]) size *= 6;
423 if ([self isMipMapped]) size = size * 4 / 3;
424
425 return size;
426}
NSSize dimensions()
Definition OOTexture.m:306
BOOL isCubeMap()
Definition OOTexture.m:338
BOOL isMipMapped()
Definition OOTexture.m:319
voidpf void uLong size
Definition ioapi.h:134

◆ dealloc

- (void) dealloc
implementation

Reimplemented from OOWeakRefObject.

Reimplemented in OOConcreteTexture.

Definition at line 923 of file OOTexture.m.

262{
263 [sAllLiveTextures removeObject:[NSValue valueWithPointer:self]];
264
265 [super dealloc];
266}

◆ dimensions

- (NSSize) dimensions

Reimplemented in OOConcreteTexture, and OONullTexture.

Provided by category OOTexture(SubclassResponsibilities).

Definition at line 923 of file OOTexture.m.

307{
309 return NSZeroSize;
310}

◆ ensureFinishedLoading

- (void) ensureFinishedLoading

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

290{
291}

◆ existingTextureForKey:

+ (OOTexture *) existingTextureForKey: (NSString *)  key
implementation

Provided by category OOTexture(SubclassInterface).

Definition at line 923 of file OOTexture.m.

501 :(NSString *)key
502{
503#ifndef OOTEXTURE_NO_CACHE
504 if (key != nil)
505 {
506 return (OOTexture *)[[sLiveTextureCache objectForKey:key] pointerValue];
507 }
508 return nil;
509#else
510 return nil;
511#endif
512}

◆ forceRebind

- (void) forceRebind
implementation

Reimplemented in OOConcreteTexture, and OONullTexture.

Provided by category OOTexture(SubclassResponsibilities).

Definition at line 923 of file OOTexture.m.

◆ glTextureName

- (GLint) glTextureName

Reimplemented in OOConcreteTexture.

Definition at line 923 of file OOTexture.m.

351{
353 return 0;
354}

◆ init

- (id) init
implementation

Definition at line 923 of file OOTexture.m.

250{
251 if ((self = [super init]))
252 {
253 if (EXPECT_NOT(sAllLiveTextures == nil)) sAllLiveTextures = [[NSMutableSet alloc] init];
254 [sAllLiveTextures addObject:[NSValue valueWithPointer:self]];
255 }
256
257 return self;
258}

◆ isCubeMap

- (BOOL) isCubeMap

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

339{
340 return NO;
341}

◆ isFinishedLoading

- (BOOL) isFinishedLoading

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

295{
296 return YES;
297}

◆ isMipMapped

- (BOOL) isMipMapped

Reimplemented in OOConcreteTexture, and OONullTexture.

Definition at line 923 of file OOTexture.m.

320{
322 return NO;
323}

◆ isRectangleTexture

- (BOOL) isRectangleTexture

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

333{
334 return NO;
335}

◆ name

- (NSString *) name

Reimplemented in OOConcreteTexture, and OONullTexture.

Definition at line 923 of file OOTexture.m.

430{
432 return nil;
433}

◆ nullTexture

+ (id) nullTexture

Definition at line 923 of file OOTexture.m.

212{
214}
OONullTexture * sharedNullTexture()

◆ originalDimensions

- (NSSize) originalDimensions

Reimplemented in OOConcreteTexture.

Definition at line 923 of file OOTexture.m.

314{
315 return [self dimensions];
316}

Referenced by OOTextureSprite::blitBackgroundCentredToX:Y:Z:alpha:, and GuiDisplayGen(Internal)::drawAdvancedNavArrayAtX:y:z:alpha:usingRoute:optimizedBy:zoom:.

+ Here is the caller graph for this function:

◆ rebindAllTextures

+ (void) rebindAllTextures

Definition at line 923 of file OOTexture.m.

374{
375 NSEnumerator *textureEnum = nil;
376 id texture = nil;
377
378 // Keeping around unused, cached textures is unhelpful at this point.
380
381 for (textureEnum = [sAllLiveTextures objectEnumerator]; (texture = [[textureEnum nextObject] pointerValue]); )
382 {
383 [texture forceRebind];
384 }
385}
#define DESTROY(x)
Definition OOCocoa.h:75

◆ release

- (oneway void) release
implementation

Reimplemented in OONullTexture.

Definition at line 923 of file OOTexture.m.

614{
615 [self releaseInContext:sGlobalTraceContext];
616}

◆ releaseInContext:

- (void) releaseInContext: (NSString *)  context
implementation

Provided by category OOTexture(OOPrivate).

Definition at line 923 of file OOTexture.m.

583 :(NSString *)context
584{
585 if (_trace)
586 {
587 if (context) OOLog(@"texture.allocTrace.release", @"Texture %p released (retain count -> %llu) - %@.", self, [self retainCount] - 1, context);
588 else OOLog(@"texture.allocTrace.release", @"Texture %p released (retain count -> %llu).", self, [self retainCount] - 1);
589 }
590
591 [super release];
592}

◆ removeFromCaches

- (void) removeFromCaches
implementation

Provided by category OOTexture(SubclassInterface).

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];
479 if (EXPECT_NOT([sRecentTextures objectForKey:cacheKey] == self))
480 {
481 /* Experimental for now: I think the recent crash problems may
482 * be because if the last reference to a texture is in
483 * sRecentTextures, and the texture is regenerated, it
484 * replaces the texture, causing a release. Therefore, if this
485 * texture *isn't* overretained in the texture cache, the 2009
486 * crash avoider will delete its replacement from the cache
487 * ... possibly before that texture has been fully added to
488 * the cache itself. So, the texture is only removed from the
489 * cache by key if it was in it with that key. The extra time
490 * needed to generate a planet texture compared with loading a
491 * standard one may be why this problem shows up. - CIM 20140122
492 */
493 NSAssert2(0, @"Texture retain count error for %@; cacheKey is %@.", self, cacheKey); //miscount in autorelease
494 // The following line is needed in order to avoid crashes when there's a 'texture retain count error'. Please do not delete. -- Kaks 20091221
495 [sRecentTextures removeObjectForKey:cacheKey]; // make sure there's no reference left inside sRecentTexture ( was a show stopper for 1.73)
496 }
497#endif
498}
return self

◆ retain

- (id) retain
implementation

Reimplemented in OONullTexture.

Definition at line 923 of file OOTexture.m.

608{
609 return [self retainInContext:sGlobalTraceContext];
610}

Referenced by HeadUpDisplay::InitTextEngine(void).

+ Here is the caller graph for this function:

◆ retainInContext:

- (id) retainInContext: (NSString *)  context
implementation

Provided by category OOTexture(OOPrivate).

Definition at line 923 of file OOTexture.m.

571 :(NSString *)context
572{
573 if (_trace)
574 {
575 if (context) OOLog(@"texture.allocTrace.retain", @"Texture %p retained (retain count -> %llu) - %@.", self, [self retainCount] + 1, context);
576 else OOLog(@"texture.allocTrace.retain", @"Texture %p retained (retain count -> %llu).", self, [self retainCount] + 1);
577 }
578
579 return [super retain];
580}

◆ setTrace:

- (void) setTrace: (BOOL)  trace

Definition at line 923 of file OOTexture.m.

389 :(BOOL)trace
390{
391 if (trace && !_trace)
392 {
393 OOLog(@"texture.allocTrace.begin", @"Started tracing texture %p with retain count %llu.", self, [self retainCount]);
394 }
395 _trace = trace;
396}

◆ texCoordsScale

- (NSSize) texCoordsScale

Reimplemented in OOConcreteTexture.

Provided by category OOTexture(SubclassOptional).

Definition at line 923 of file OOTexture.m.

345{
346 return NSMakeSize(1.0, 1.0);
347}

◆ textureWithConfiguration:

+ (id) textureWithConfiguration: (id)  configuration

Definition at line 923 of file OOTexture.m.

192 :(id)configuration
193{
194 return [self textureWithConfiguration:configuration extraOptions:0];
195}

Referenced by OOSingleTextureMaterial::allTextures.

+ Here is the caller graph for this function:

◆ textureWithConfiguration:extraOptions:

+ (id) textureWithConfiguration: (id)  configuration
extraOptions: (OOTextureFlags extraOptions 

Definition at line 923 of file OOTexture.m.

198 :(id)configuration extraOptions:(OOTextureFlags)extraOptions
199{
200 NSString *name = nil;
201 OOTextureFlags options = 0;
202 GLfloat anisotropy = 0.0f;
203 GLfloat lodBias = 0.0f;
204
205 if (!OOInterpretTextureSpecifier(configuration, &name, &options, &anisotropy, &lodBias, NO)) return nil;
206
207 return [self textureWithName:name inFolder:@"Textures" options:options | extraOptions anisotropy:anisotropy lodBias:lodBias];
208}
uint32_t OOTextureFlags
Definition OOTexture.h:98
BOOL OOInterpretTextureSpecifier(id specifier, NSString **outName, OOTextureFlags *outOptions, float *outAnisotropy, float *outLODBias, BOOL ignoreExtract)
Definition OOTexture.m:693
NSString * name()
Definition OOTexture.m:429

◆ textureWithGenerator:

+ (id) textureWithGenerator: (OOTextureGenerator *)  generator

Definition at line 923 of file OOTexture.m.

217 :(OOTextureGenerator *)generator
218{
219 return [self textureWithGenerator:generator enqueue: NO];
220}

◆ textureWithGenerator:enqueue:

+ (id) textureWithGenerator: (OOTextureGenerator *)  generator
enqueue: (BOOL)  enqueue 

Definition at line 923 of file OOTexture.m.

223 :(OOTextureGenerator *)generator enqueue:(BOOL) enqueue
224{
225 if (generator == nil) return nil;
226
227#ifndef OOTEXTURE_NO_CACHE
228 OOTexture *existing = [OOTexture existingTextureForKey:[generator cacheKey]];
229 if (existing != nil && !enqueue) return [[existing retain] autorelease];
230#endif
231
232 if (![generator enqueue])
233 {
234 OOLogERR(@"texture.generator.queue.failed", @"Failed to queue generator %@", generator);
235 return nil;
236 }
237 OOLog(@"texture.generator.queue", @"Queued texture generator %@", generator);
238
239 OOTexture *result = [[[OOConcreteTexture alloc] initWithLoader:generator
240 key:[generator cacheKey]
241 options:OOApplyTextureOptionDefaults([generator textureOptions])
242 anisotropy:[generator anisotropy]
243 lodBias:[generator lodBias]] autorelease];
244
245 return result;
246}
#define OOLogERR(class, format,...)
Definition OOLogging.h:112
OOTexture * existingTextureForKey:(NSString *key)
Definition OOTexture.m:501

◆ textureWithName:inFolder:

+ (id) textureWithName: (NSString *)  name
inFolder: (NSString*)  directory 

Definition at line 923 of file OOTexture.m.

181 :(NSString *)name
182 inFolder:(NSString*)directory
183{
184 return [self textureWithName:name
185 inFolder:directory
186 options:kOOTextureDefaultOptions
187 anisotropy:kOOTextureDefaultAnisotropy
188 lodBias:kOOTextureDefaultLODBias];
189}

◆ textureWithName:inFolder:options:anisotropy:lodBias:

+ (id) textureWithName: (NSString *)  name
inFolder: (NSString *)  directory
options: (OOTextureFlags options
anisotropy: (GLfloat)  anisotropy
lodBias: (GLfloat)  lodBias 

Definition at line 923 of file OOTexture.m.

134 :(NSString *)name
135 inFolder:(NSString*)directory
136 options:(OOTextureFlags)options
137 anisotropy:(GLfloat)anisotropy
138 lodBias:(GLfloat)lodBias
139{
140 NSString *key = nil;
141 OOTexture *result = nil;
142 NSString *path = nil;
143 BOOL noFNF;
144
145 if (EXPECT_NOT(name == nil)) return nil;
146 if (EXPECT_NOT(!sCheckedExtensions)) [self checkExtensions];
147
149 {
150 anisotropy = 0.0f;
151 }
153 {
154 lodBias = 0.0f;
155 }
156
157 noFNF = (options & kOOTextureNoFNFMessage) != 0;
159
160 // Look for existing texture
161 key = OOGenerateTextureCacheKey(directory, name, options, anisotropy, lodBias);
162 result = [OOTexture existingTextureForKey:key];
163 if (result == nil)
164 {
165 path = [ResourceManager pathForFileNamed:name inFolder:directory];
166 if (path == nil)
167 {
168 if (!noFNF) OOLogWARN(kOOLogFileNotFound, @"Could not find texture file \"%@\".", name);
169 return nil;
170 }
171
172 // No existing texture, load texture.
173 result = [[[OOConcreteTexture alloc] initWithPath:path key:key options:options anisotropy:anisotropy lodBias:lodBias] autorelease];
174 }
175
176
177 return result;
178}
#define OOLogWARN(class, format,...)
Definition OOLogging.h:113
NSString *const kOOLogFileNotFound
Definition OOLogging.m:652
OOTextureFlags OOApplyTextureOptionDefaults(OOTextureFlags options)
Definition OOTexture.m:854
@ kOOTextureNoFNFMessage
Definition OOTexture.h:58
@ kOOTextureMinFilterMask
Definition OOTexture.h:72
@ kOOTextureMinFilterMipMap
Definition OOTexture.h:48
NSString * OOGenerateTextureCacheKey(NSString *directory, NSString *name, OOTextureFlags options, float anisotropy, float lodBias)
Definition OOTexture.m:907
NSString * pathForFileNamed:inFolder:(NSString *fileName,[inFolder] NSString *folderName)

Referenced by HeadUpDisplay::InitTextEngine(void), and GuiDisplayGen::TextureForGUITexture.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _trace

- (BOOL) _trace
protected

Definition at line 120 of file OOTexture.h.


The documentation for this class was generated from the following files: