![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOTextureLoader.h>
Instance Methods | |
(BOOL) | - isReady |
(BOOL) | - getResult:format:originalWidth:originalHeight: |
(NSString *) | - cacheKey |
(id) | - initWithPath:options: |
(NSString *) | - path |
(void) | - loadTexture |
(void) | - dealloc [implementation] |
(NSString *) | - descriptionComponents [implementation] |
(NSString *) | - shortDescriptionComponents [implementation] |
(void) | - performAsyncTask [implementation] |
(void) | - generateMipMapsForCubeMap [implementation] |
(void) | - applySettings [implementation] |
(void) | - getDesiredWidth:andHeight: [implementation] |
(void) | - completeAsyncTask [implementation] |
Class Methods | |
(id) | + loaderWithPath:options: |
(id) | + loaderWithTextureSpecifier:extraOptions:folder: |
(void) | + setUp [implementation] |
Protected Attributes | |
NSString * | _path |
OOTextureFlags | _options |
uint8_t | _generateMipMaps: 1 |
uint8_t | _scaleAsNormalMap: 1 |
uint8_t | _avoidShrinking: 1 |
uint8_t | _noScalingWhatsoever: 1 |
uint8_t | _extractChannel: 1 |
uint8_t | _allowCubeMap: 1 |
uint8_t | _isCubeMap: 1 |
uint8_t | _ready: 1 |
uint8_t | _extractChannelIndex |
OOTextureDataFormat | _format |
void * | _data |
uint32_t | _width |
uint32_t | _height |
uint32_t | _originalWidth |
uint32_t | _originalHeight |
uint32_t | _shrinkThreshold |
uint32_t | _maxSize |
size_t | _rowBytes |
Definition at line 38 of file OOTextureLoader.h.
|
implementation |
Provided by category OOTextureLoader(OOPrivate).
Definition at line 379 of file OOTextureLoader.m.
References OOTextureLoader(OOPrivate)::applySettings, EXPECT_NOT, generateMipMapsForCubeMap, getDesiredWidth:andHeight:, OOPixMap::height, kCubeShrinkThreshold, kOOTextureDataGrayscale, MIN, OOConvertCubeMapToLatLong(), OOCubeMapsAvailable(), OODumpPixMap(), OOExpandPixMap(), OOExtractPixMapChannel(), OOFreePixMap(), OOGenerateMipMaps(), OOIsValidPixMap(), OOLog, OOLogWARN, OOMakePixMap(), OOPixMapToRGBA(), OOScalePixMap(), OOTextureComponentsForFormat(), OOPixMap::pixels, OOPixMap::rowBytes, sReducedDetail, and OOPixMap::width.
Referenced by OOTextureLoader(OOPrivate)::applySettings, performAsyncTask, and OOTextureLoader(OOPrivate)::setUp.
- (NSString *) cacheKey |
Reimplemented in OOCombinedEmissionMapGenerator, and OOTextureGenerator.
Definition at line 281 of file OOTextureLoader.m.
References cacheKey, and path.
Referenced by cacheKey.
|
implementation |
Reimplemented from <OOAsyncWorkTask>.
Definition at line 545 of file OOTextureLoader.m.
References _ready, and completeAsyncTask.
Referenced by completeAsyncTask.
|
implementation |
Reimplemented in OOCombinedEmissionMapGenerator, OOPixMapTextureLoader, and OOPNGTextureLoader.
Definition at line 196 of file OOTextureLoader.m.
References _data, _path, dealloc, and nil.
Referenced by OOCombinedEmissionMapGenerator::dealloc, OOPixMapTextureLoader::dealloc, OOPNGTextureLoader::dealloc, and dealloc.
|
implementation |
Reimplemented in OOCombinedEmissionMapGenerator.
Definition at line 207 of file OOTextureLoader.m.
References _data, _ready, descriptionComponents, and nil.
Referenced by descriptionComponents.
|
implementation |
Definition at line 345 of file OOTextureLoader.m.
References _data, _format, _generateMipMaps, _options, _width, EXPECT_NOT, generateMipMapsForCubeMap, kOOTextureMinFilterLinear, kOOTextureMinFilterMask, OOGenerateMipMaps(), and OOTextureComponentsForFormat().
Referenced by OOTextureLoader(OOPrivate)::applySettings, and generateMipMapsForCubeMap.
|
implementation |
Provided by category OOTextureLoader(OOPrivate).
Definition at line 482 of file OOTextureLoader.m.
References MIN, OORoundUpToPowerOf2_PixMap, sGLMaxSize, sHaveNPOTTextures, sReducedDetail, and sUserMaxSize.
Referenced by OOTextureLoader(OOPrivate)::applySettings.
- (BOOL) getResult: | (OOPixMap *) | result | |
format: | (OOTextureDataFormat *) | outFormat | |
originalWidth: | (uint32_t *) | outWidth | |
originalHeight: | (uint32_t *) | outHeight |
Definition at line 246 of file OOTextureLoader.m.
References _data, _format, _height, _originalHeight, _originalWidth, _ready, _width, kOONullPixMap, kOOTextureDataInvalid, OOIsValidPixMap(), OOMakePixMap(), OOTextureComponentsForFormat(), OOAsyncWorkManager::sharedAsyncWorkManager, and OOAsyncWorkManager::waitForTaskToComplete:.
Referenced by OOTextureVerifierStage(OOPrivate)::checkTextureNamed:inFolder:, and OOCombinedEmissionMapGenerator(Private)::initWithEmissionMapSpec:emissionColor:diffuseMap:diffuseColor:illuminationMapSpec:illuminationColor:isCombinedMap:optionsSpecifier:.
- (id) initWithPath: | (NSString *) | path | |
options: | (uint32_t) | options |
Definition at line 130 of file OOTextureLoader.m.
References _allowCubeMap, _avoidShrinking, _extractChannel, _extractChannelIndex, _generateMipMaps, _maxSize, _noScalingWhatsoever, _options, _path, _shrinkThreshold, EXPECT_NOT, kDefaultShrinkThreshold, kExtraShrinkMaxSize, kExtraShrinkThreshold, kNeverShrinkThreshold, kOOTextureAllowCubeMap, kOOTextureExtractChannelA, kOOTextureExtractChannelB, kOOTextureExtractChannelG, kOOTextureExtractChannelMask, kOOTextureExtractChannelR, kOOTextureExtraShrink, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, kOOTextureNeverScale, kOOTextureNoShrink, MIN, nil, OOLogERR, sGLMaxSize, and sUserMaxSize.
- (BOOL) isReady |
Definition at line 240 of file OOTextureLoader.m.
References _ready, and isReady.
Referenced by OOConcreteTexture::isFinishedLoading, and isReady.
+ (id) loaderWithPath: | (NSString *) | path | |
options: | (uint32_t) | options |
Definition at line 76 of file OOTextureLoader.m.
References EXPECT_NOT, kOOAsyncPriorityMedium, nil, OOLog, setUp, sHaveSetUp, and sReducedDetail.
Referenced by OOTextureVerifierStage(OOPrivate)::checkTextureNamed:inFolder:, OOConcreteTexture(Private)::forceRebind, OOConcreteTexture::initWithPath:key:options:anisotropy:lodBias:, and loaderWithTextureSpecifier:extraOptions:folder:.
+ (id) loaderWithTextureSpecifier: | (id) | specifier | |
extraOptions: | (uint32_t) | extraOptions | |
folder: | (NSString *) | folder |
Definition at line 107 of file OOTextureLoader.m.
References kOOLogFileNotFound, kOOTextureNoFNFMessage, loaderWithPath:options:, nil, OOInterpretTextureSpecifier(), OOLogWARN, OOStandardsError(), path, and ResourceManager::pathForFileNamed:inFolder:.
- (void) loadTexture |
Reimplemented in OOCombinedEmissionMapGenerator, OOPixMapTextureLoader, and OOPNGTextureLoader.
Definition at line 287 of file OOTextureLoader.m.
References loadTexture, and OOLogGenericSubclassResponsibility.
Referenced by loadTexture, and performAsyncTask.
- (NSString *) path |
Definition at line 234 of file OOTextureLoader.m.
Referenced by cacheKey, loaderWithTextureSpecifier:extraOptions:folder:, and path.
|
implementation |
Reimplemented from <OOAsyncWorkTask>.
Definition at line 314 of file OOTextureLoader.m.
References _data, _format, _path, applySettings, loadTexture, OOLog, OOTextureComponentsForFormat(), and performAsyncTask.
Referenced by performAsyncTask.
|
implementation |
Provided by category OOTextureLoader(OOPrivate).
Definition at line 293 of file OOTextureLoader.m.
References MAX, OOGL, OOLog, setUp, sGLMaxSize, sHaveSetUp, and sUserMaxSize.
Referenced by loaderWithPath:options:, and setUp.
|
implementation |
Definition at line 228 of file OOTextureLoader.m.
References shortDescriptionComponents.
Referenced by shortDescriptionComponents.
|
protected |
Definition at line 50 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 47 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 56 of file OOTextureLoader.h.
Referenced by dealloc, descriptionComponents, generateMipMapsForCubeMap, getResult:format:originalWidth:originalHeight:, OOCombinedEmissionMapGenerator::loadTexture, OOPixMapTextureLoader::loadTexture, and performAsyncTask.
|
protected |
Definition at line 49 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 53 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 54 of file OOTextureLoader.h.
Referenced by generateMipMapsForCubeMap, getResult:format:originalWidth:originalHeight:, OOCombinedEmissionMapGenerator::loadTexture, OOPixMapTextureLoader::loadTexture, and performAsyncTask.
|
protected |
Definition at line 45 of file OOTextureLoader.h.
Referenced by generateMipMapsForCubeMap, and initWithPath:options:.
|
protected |
Definition at line 58 of file OOTextureLoader.h.
Referenced by getResult:format:originalWidth:originalHeight:, OOCombinedEmissionMapGenerator::loadTexture, and OOPixMapTextureLoader::loadTexture.
|
protected |
Definition at line 51 of file OOTextureLoader.h.
|
protected |
Definition at line 62 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 48 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 44 of file OOTextureLoader.h.
Referenced by generateMipMapsForCubeMap, and initWithPath:options:.
|
protected |
Definition at line 60 of file OOTextureLoader.h.
Referenced by getResult:format:originalWidth:originalHeight:.
|
protected |
Definition at line 59 of file OOTextureLoader.h.
Referenced by getResult:format:originalWidth:originalHeight:.
|
protected |
Definition at line 42 of file OOTextureLoader.h.
Referenced by dealloc, initWithPath:options:, path, and performAsyncTask.
|
protected |
Definition at line 52 of file OOTextureLoader.h.
Referenced by completeAsyncTask, descriptionComponents, getResult:format:originalWidth:originalHeight:, and isReady.
|
protected |
Definition at line 63 of file OOTextureLoader.h.
Referenced by OOCombinedEmissionMapGenerator::loadTexture, and OOPixMapTextureLoader::loadTexture.
|
protected |
Definition at line 46 of file OOTextureLoader.h.
|
protected |
Definition at line 61 of file OOTextureLoader.h.
Referenced by initWithPath:options:.
|
protected |
Definition at line 57 of file OOTextureLoader.h.
Referenced by generateMipMapsForCubeMap, getResult:format:originalWidth:originalHeight:, OOCombinedEmissionMapGenerator::loadTexture, and OOPixMapTextureLoader::loadTexture.