![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOTexture.h>
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] |
![]() | |
(id) | - weakSelf |
(id) | - weakRetain [implementation] |
(void) | - weakRefDied: [implementation] |
![]() | |
(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 |
![]() | |
OOWeakReference * | weakSelf |
Definition at line 116 of file OOTexture.h.
|
implementation |
Provided by category OOTexture(SubclassInterface).
Definition at line 444 of file OOTexture.m.
References OOTexture(OOPrivate)::addToCaches, cacheKey, CLEAR_TRACE_CONTEXT, EXPECT_NOT, nil, SET_TRACE_CONTEXT, OOCache::setAutoPrune:, OOCache::setName:, OOCache::setObject:forKey:, OOCache::setPruneThreshold:, sLiveTextureCache, and sRecentTextures.
Referenced by OOTexture(OOPrivate)::addToCaches, and OOConcreteTexture::initWithLoader:key:options:anisotropy:lodBias:.
+ (NSSet *) allTextures |
Definition at line 405 of file OOTexture.m.
References allTextures, nil, and sAllLiveTextures.
Referenced by allTextures, and OODebugMonitor::dumpMemoryStatistics.
- (void) apply |
Reimplemented in OOConcreteTexture, and OONullTexture.
Provided by category OOTexture(SubclassResponsibilities).
Definition at line 269 of file OOTexture.m.
References apply, OOLogGenericSubclassResponsibility, and textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by apply, OOTextureSprite::blitToX:Y:Z:alpha:, OOSingleTextureMaterial::doApply, DustEntity::drawImmediate:translucent:, OOLaserShotEntity::drawImmediate:translucent:, OOLightParticleEntity::drawImmediate:translucent:, OOParticleSystem::drawImmediate:translucent:, HeadUpDisplay(Private)::drawScannerZoomIndicator:, OOExhaustPlumeEntity::drawSubEntityImmediate:translucent:, OOTrumble::drawTrumble:, PlanetEntity::drawUnconditionally, HeadUpDisplay::OODrawPlanetInfo, HeadUpDisplay::OOStartDrawingStrings, and OOSkyQuadSet::render.
+ (void) applyNone |
Definition at line 275 of file OOTexture.m.
References applyNone, gOOTextureInfo, OO_ENTER_OPENGL, OOCubeMapsAvailable(), and OOGL.
Referenced by OONullTexture::apply, applyNone, OOBasicMaterial::doApply, GuiDisplayGen(Internal)::drawGLDisplay:x:y:z:, HeadUpDisplay(Private)::drawScannerZoomIndicator:, PlanetEntity::drawUnconditionally, HeadUpDisplay::OODrawPlanetInfo, HeadUpDisplay::OOStopDrawingStrings, and OOSingleTextureMaterial::unapplyWithNext:.
|
implementation |
Reimplemented in OONullTexture.
Definition at line 620 of file OOTexture.m.
References autorelease, and autoreleaseInContext:.
Referenced by autorelease.
|
implementation |
Provided by category OOTexture(OOPrivate).
Definition at line 596 of file OOTexture.m.
References OOLog.
Referenced by autorelease.
+ (NSArray *) cachedTexturesByAge |
Definition at line 399 of file OOTexture.m.
References cachedTexturesByAge, and OOCache::objectsByAge.
Referenced by cachedTexturesByAge, and OODebugMonitor::dumpMemoryStatistics.
- (NSString *) cacheKey |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 300 of file OOTexture.m.
Referenced by OOTexture(OOPrivate)::addToCaches, cacheKey, and OOTexture(SubclassInterface)::removeFromCaches.
|
implementation |
Provided by category OOTexture(OOPrivate).
Definition at line 516 of file OOTexture.m.
References checkExtensions, gOOTextureInfo, OOOpenGLExtensionManager::haveExtension:, OO_ENTER_OPENGL, OOGL, sCheckedExtensions, OOOpenGLExtensionManager::sharedManager, and OOOpenGLExtensionManager::versionIsAtLeastMajor:minor:.
Referenced by checkExtensions, and textureWithName:inFolder:options:anisotropy:lodBias:.
+ (void) clearCache |
Definition at line 357 of file OOTexture.m.
References CLEAR_TRACE_CONTEXT, clearCache, nil, SET_TRACE_CONTEXT, sLiveTextureCache, and sRecentTextures.
Referenced by clearCache, OODebugController::clearTextureCacheAction:, Universe::reinitAndShowDemo:, and OODebugController::resetAndClearAction:.
- (struct OOPixMap) copyPixMapRepresentation |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 326 of file OOTexture.m.
References copyPixMapRepresentation, and kOONullPixMap.
Referenced by copyPixMapRepresentation, and OOCombinedEmissionMapGenerator(Private)::initWithEmissionMapSpec:emissionColor:diffuseMap:diffuseColor:illuminationMapSpec:illuminationColor:isCombinedMap:optionsSpecifier:.
- (size_t) dataSize |
Definition at line 419 of file OOTexture.m.
References dataSize, dimensions, isCubeMap, and isMipMapped.
Referenced by dataSize, and OODebugMonitor::dumpMemoryStatistics.
|
implementation |
Reimplemented from OOWeakRefObject.
Reimplemented in OOConcreteTexture.
Definition at line 261 of file OOTexture.m.
References dealloc, and OOWeakRefObject::dealloc.
Referenced by OOConcreteTexture::dealloc, and dealloc.
- (NSSize) dimensions |
Reimplemented in OOConcreteTexture, and OONullTexture.
Provided by category OOTexture(SubclassResponsibilities).
Definition at line 306 of file OOTexture.m.
References dimensions, nil, OOLogGenericSubclassResponsibility, and textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by HeadUpDisplay::addLegend:, dataSize, dimensions, HeadUpDisplay(Private)::drawCustomImage:, and originalDimensions.
- (void) ensureFinishedLoading |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 289 of file OOTexture.m.
References ensureFinishedLoading, and textureWithName:inFolder:options:anisotropy:lodBias:.
Referenced by PlanetEntity::drawUnconditionally, OOSingleTextureMaterial::ensureFinishedLoading, ensureFinishedLoading, and OOProbabilisticTextureManager::ensureTexturesLoaded.
|
implementation |
Provided by category OOTexture(SubclassInterface).
Definition at line 502 of file OOTexture.m.
References nil.
Referenced by textureWithGenerator:enqueue:, and textureWithName:inFolder:options:anisotropy:lodBias:.
|
implementation |
Reimplemented in OOConcreteTexture, and OONullTexture.
Provided by category OOTexture(SubclassResponsibilities).
Definition at line 438 of file OOTexture.m.
References OOTexture(OOPrivate)::forceRebind, and OOLogGenericSubclassResponsibility.
Referenced by OOTexture(OOPrivate)::existingTextureForKey:, and OOTexture(OOPrivate)::forceRebind.
- (GLint) glTextureName |
Reimplemented in OOConcreteTexture.
Definition at line 350 of file OOTexture.m.
References glTextureName, and OOLogGenericSubclassResponsibility.
Referenced by glTextureName.
|
implementation |
Definition at line 249 of file OOTexture.m.
References EXPECT_NOT, init, nil, and sAllLiveTextures.
Referenced by init, and OOConcreteTexture::initWithLoader:key:options:anisotropy:lodBias:.
- (BOOL) isCubeMap |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 338 of file OOTexture.m.
References isCubeMap.
Referenced by dataSize, isCubeMap, and OOSingleTextureMaterial::wantsNormalsAsTextureCoordinates.
- (BOOL) isFinishedLoading |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 294 of file OOTexture.m.
References isFinishedLoading, and textureWithConfiguration:extraOptions:.
Referenced by OOSingleTextureMaterial::isFinishedLoading, and isFinishedLoading.
- (BOOL) isMipMapped |
Reimplemented in OOConcreteTexture, and OONullTexture.
Definition at line 319 of file OOTexture.m.
References isMipMapped, and OOLogGenericSubclassResponsibility.
Referenced by dataSize, and isMipMapped.
- (BOOL) isRectangleTexture |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 332 of file OOTexture.m.
References isRectangleTexture.
Referenced by isRectangleTexture.
- (NSString *) name |
Reimplemented in OOConcreteTexture, and OONullTexture.
Definition at line 430 of file OOTexture.m.
References name, nil, and OOLogGenericSubclassResponsibility.
Referenced by name, textureWithConfiguration:extraOptions:, and textureWithName:inFolder:options:anisotropy:lodBias:.
+ (id) nullTexture |
Definition at line 211 of file OOTexture.m.
References nullTexture, and OONullTexture::sharedNullTexture.
Referenced by nullTexture.
- (NSSize) originalDimensions |
Reimplemented in OOConcreteTexture.
Definition at line 313 of file OOTexture.m.
References dimensions, and originalDimensions.
Referenced by OOTextureSprite::initWithTexture:, GuiDisplayGen::NewTextureSpriteWithDescriptor, and originalDimensions.
+ (void) rebindAllTextures |
Definition at line 373 of file OOTexture.m.
References DESTROY, nil, rebindAllTextures, sAllLiveTextures, and sRecentTextures.
Referenced by rebindAllTextures, and OOGraphicsResetManager::resetGraphicsState.
|
implementation |
Reimplemented in OONullTexture.
Definition at line 614 of file OOTexture.m.
References release, and releaseInContext:.
Referenced by OOProbabilisticTextureManager::dealloc, OOSingleTextureMaterial::dealloc, OOSkyQuadSet::dealloc, OOTextureSprite::dealloc, OOTrumble::dealloc, OOConcreteTexture::initWithLoader:key:options:anisotropy:lodBias:, OOConcreteTexture::initWithPath:key:options:anisotropy:lodBias:, release, OOExhaustPlumeEntity::resetGraphicsState, OOFlashEffectEntity::resetGraphicsState, OOLaserShotEntity::resetGraphicsState, and OOLightParticleEntity::resetGraphicsState.
|
implementation |
Provided by category OOTexture(OOPrivate).
Definition at line 584 of file OOTexture.m.
References OOLog.
Referenced by release.
|
implementation |
Provided by category OOTexture(SubclassInterface).
Definition at line 473 of file OOTexture.m.
References cacheKey, EXPECT_NOT, nil, OOTexture(SubclassInterface)::removeFromCaches, OOCache::removeObjectForKey:, and sRecentTextures.
Referenced by OOConcreteTexture::dealloc, and OOTexture(SubclassInterface)::removeFromCaches.
|
implementation |
Reimplemented in OONullTexture.
Definition at line 608 of file OOTexture.m.
References retain, and retainInContext:.
Referenced by PlanetEntity::initFromDictionary:withAtmosphere:andSeed:, HeadUpDisplay::InitTextEngine(void), OOCombinedEmissionMapGenerator(Private)::initWithEmissionMapSpec:emissionColor:diffuseMap:diffuseColor:illuminationMapSpec:illuminationColor:isCombinedMap:optionsSpecifier:, OOSingleTextureMaterial::initWithName:texture:configuration:, OOProbabilisticTextureManager::initWithPListName:options:anisotropy:lodBias:seed:, OOSkyQuadSet::initWithQuadsWithTexture:inArray:count:, OOTextureSprite::initWithTexture:size:, retain, OOTrumble::setupForPlayer:digram:, and textureWithGenerator:enqueue:.
|
implementation |
Provided by category OOTexture(OOPrivate).
Definition at line 572 of file OOTexture.m.
References OOLog.
Referenced by retain.
- (void) setTrace: | (BOOL) | trace |
- (NSSize) texCoordsScale |
Reimplemented in OOConcreteTexture.
Provided by category OOTexture(SubclassOptional).
Definition at line 344 of file OOTexture.m.
References texCoordsScale.
Referenced by texCoordsScale.
+ (id) textureWithConfiguration: | (id) | configuration |
Definition at line 192 of file OOTexture.m.
Referenced by OOSingleTextureMaterial::initWithName:configuration:.
+ (id) textureWithConfiguration: | (id) | configuration | |
extraOptions: | (OOTextureFlags) | extraOptions |
Definition at line 198 of file OOTexture.m.
Referenced by OOTexture(SubclassOptional)::isFinishedLoading, and PlanetEntity(OOPrivate)::loadTexture:.
+ (id) textureWithGenerator: | (OOTextureGenerator *) | generator |
Definition at line 217 of file OOTexture.m.
References textureWithGenerator:enqueue:.
Referenced by PlanetEntity(OOPrivate)::cloudTextureWithCloudColor:cloudImpress:cloudBias:, and PlanetEntity(OOPrivate)::planetTextureWithInfo:.
+ (id) textureWithGenerator: | (OOTextureGenerator *) | generator | |
enqueue: | (BOOL) | enqueue |
Definition at line 223 of file OOTexture.m.
References OOTextureGenerator::anisotropy, OOTextureGenerator::cacheKey, existingTextureForKey:, OOTextureGenerator::lodBias, nil, OOLog, OOLogERR, retain, and OOTextureGenerator::textureOptions.
Referenced by textureWithGenerator:.
+ (id) textureWithName: | (NSString *) | name | |
inFolder: | (NSString*) | directory |
Definition at line 181 of file OOTexture.m.
Referenced by OOMaterial(OOConvenienceCreators)::materialWithName:cacheKey:materialDictionary:shadersDictionary:macros:bindingTarget:forSmoothedMesh:.
+ (id) textureWithName: | (NSString *) | name | |
inFolder: | (NSString *) | directory | |
options: | (OOTextureFlags) | options | |
anisotropy: | (GLfloat) | anisotropy | |
lodBias: | (GLfloat) | lodBias |
Definition at line 134 of file OOTexture.m.
References checkExtensions, existingTextureForKey:, EXPECT_NOT, gOOTextureInfo, kOOLogFileNotFound, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, kOOTextureNoFNFMessage, name, nil, OOApplyTextureOptionDefaults(), OOGenerateTextureCacheKey(), OOLogWARN, ResourceManager::pathForFileNamed:inFolder:, and sCheckedExtensions.
Referenced by HeadUpDisplay::addLegend:, OOTexture(SubclassResponsibilities)::apply, OOTexture(SubclassResponsibilities)::dimensions, HeadUpDisplay(Private)::drawCustomImage:, OOTexture(SubclassOptional)::ensureFinishedLoading, DustEntity::init, OOExplosionCloudEntity(OOPrivate)::initExplosionCloudWithEntity:size:andSettings:, HeadUpDisplay::InitTextEngine(void), OOProbabilisticTextureManager::initWithPListName:options:anisotropy:lodBias:seed:, OOTrumble::setupForPlayer:digram:, OOExhaustPlumeEntity::setUpTexture, OOFlashEffectEntity::setUpTexture, OOLaserShotEntity::setUpTexture, OOLightParticleEntity::setUpTexture, and GuiDisplayGen::TextureForGUITexture.
|
protected |
Definition at line 120 of file OOTexture.h.
Referenced by OOConcreteTexture::dealloc, and setTrace:.