Oolite 1.91.0.7646-241128-10e222e
|
import "OOTexture.h"
import "OOTextureInternal.h"
import "OOConcreteTexture.h"
import "OONullTexture.h"
import "OOTextureLoader.h"
import "OOTextureGenerator.h"
import "OOCollectionExtractors.h"
import "Universe.h"
import "ResourceManager.h"
import "OOOpenGLExtensionManager.h"
import "OOMacroOpenGL.h"
import "OOCPUInfo.h"
import "OOCache.h"
import "OOPixMap.h"
Go to the source code of this file.
Classes | |
category | OOTexture(OOPrivate) |
Macros | |
#define | SET_TRACE_CONTEXT(str) |
#define | CLEAR_TRACE_CONTEXT() |
Enumerations | |
enum | { kRecentTexturesCount = 50 } |
Functions | |
NSDictionary * | OOTextureSpecFromObject (id object, NSString *defaultName) |
uint8_t | OOTextureComponentsForFormat (OOTextureDataFormat format) |
BOOL | OOCubeMapsAvailable (void) |
BOOL | OOInterpretTextureSpecifier (id specifier, NSString **outName, OOTextureFlags *outOptions, float *outAnisotropy, float *outLODBias, BOOL ignoreExtract) |
NSDictionary * | OOMakeTextureSpecifier (NSString *name, OOTextureFlags options, float anisotropy, float lodBias, BOOL internal) |
OOTextureFlags | OOApplyTextureOptionDefaults (OOTextureFlags options) |
NSString * | OOGenerateTextureCacheKey (NSString *directory, NSString *name, OOTextureFlags options, float anisotropy, float lodBias) |
NSString * | OOTextureCacheKeyForSpecifier (id specifier) |
Variables | |
NSString *const | kOOTextureSpecifierNameKey = @"name" |
NSString *const | kOOTextureSpecifierSwizzleKey = @"extract_channel" |
NSString *const | kOOTextureSpecifierMinFilterKey = @"min_filter" |
NSString *const | kOOTextureSpecifierMagFilterKey = @"mag_filter" |
NSString *const | kOOTextureSpecifierNoShrinkKey = @"no_shrink" |
NSString *const | kOOTextureSpecifierExtraShrinkKey = @"extra_shrink" |
NSString *const | kOOTextureSpecifierRepeatSKey = @"repeat_s" |
NSString *const | kOOTextureSpecifierRepeatTKey = @"repeat_t" |
NSString *const | kOOTextureSpecifierCubeMapKey = @"cube_map" |
NSString *const | kOOTextureSpecifierAnisotropyKey = @"anisotropy" |
NSString *const | kOOTextureSpecifierLODBiasKey = @"texture_LOD_bias" |
NSString *const | kOOTextureSpecifierModulateColorKey = @"color" |
NSString *const | kOOTextureSpecifierIlluminationModeKey = @"illumination_mode" |
NSString *const | kOOTextureSpecifierSelfColorKey = @"self_color" |
NSString *const | kOOTextureSpecifierScaleFactorKey = @"scale_factor" |
NSString *const | kOOTextureSpecifierBindingKey = @"binding" |
static NSString *const | kOOTextureSpecifierFlagValueInternalKey = @"_oo_internal_flags" |
static NSMutableDictionary * | sLiveTextureCache |
static NSMutableSet * | sAllLiveTextures |
static OOCache * | sRecentTextures |
static BOOL | sCheckedExtensions |
OOTextureInfo | gOOTextureInfo |
static NSString * | sGlobalTraceContext = nil |
#define CLEAR_TRACE_CONTEXT | ( | ) |
Definition at line 129 of file OOTexture.m.
#define SET_TRACE_CONTEXT | ( | str | ) |
Definition at line 125 of file OOTexture.m.
anonymous enum |
Enumerator | |
---|---|
kRecentTexturesCount |
Definition at line 90 of file OOTexture.m.
OOTextureFlags OOApplyTextureOptionDefaults | ( | OOTextureFlags | options | ) |
Definition at line 855 of file OOTexture.m.
References gOOTextureInfo, kOOTextureAllowRectTexture, kOOTextureDefinedFlags, kOOTextureFlagsAllowedForRectangleTexture, kOOTextureMinFilterDefault, kOOTextureMinFilterLinear, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, OOTextureInfo::rectangleTextureAvailable, OOTextureInfo::textureMaxLevelAvailable, and UNIVERSE.
Referenced by OOPixMapTextureLoader::dealloc, OODefaultShaderSynthesizer::KeyFromTextureParameters, and OOGenerateTextureCacheKey().
BOOL OOCubeMapsAvailable | ( | void | ) |
Definition at line 688 of file OOTexture.m.
References OOTextureInfo::cubeMapAvailable, and gOOTextureInfo.
NSString * OOGenerateTextureCacheKey | ( | NSString * | directory, |
NSString * | name, | ||
OOTextureFlags | options, | ||
float | anisotropy, | ||
float | lodBias ) |
Definition at line 908 of file OOTexture.m.
References OOTextureInfo::anisotropyAvailable, gOOTextureInfo, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, kOOTextureNoFNFMessage, OOApplyTextureOptionDefaults(), and OOTextureInfo::textureLODBiasAvailable.
Referenced by OOTexture(OOPrivate)::addToCaches.
BOOL OOInterpretTextureSpecifier | ( | id | specifier, |
NSString ** | outName, | ||
OOTextureFlags * | outOptions, | ||
float * | outAnisotropy, | ||
float * | outLODBias, | ||
BOOL | ignoreExtract ) |
Definition at line 694 of file OOTexture.m.
References kOOLogParameterError, kOOTextureAllowCubeMap, kOOTextureDefaultAnisotropy, kOOTextureDefaultLODBias, kOOTextureDefaultOptions, kOOTextureExtractChannelA, kOOTextureExtractChannelB, kOOTextureExtractChannelG, kOOTextureExtractChannelR, kOOTextureExtraShrink, kOOTextureMagFilterLinear, kOOTextureMagFilterNearest, kOOTextureMinFilterDefault, kOOTextureMinFilterLinear, kOOTextureMinFilterMipMap, kOOTextureMinFilterNearest, kOOTextureNoShrink, kOOTextureRepeatS, kOOTextureRepeatT, kOOTextureSpecifierCubeMapKey, kOOTextureSpecifierExtraShrinkKey, kOOTextureSpecifierNoShrinkKey, kOOTextureSpecifierRepeatSKey, kOOTextureSpecifierRepeatTKey, nil, OOLog, and OOLogWARN.
Referenced by OOTexture(OOPrivate)::addToCaches, and OODefaultShaderSynthesizer::assignIDForTexture:.
NSDictionary * OOMakeTextureSpecifier | ( | NSString * | name, |
OOTextureFlags | options, | ||
float | anisotropy, | ||
float | lodBias, | ||
BOOL | internal ) |
Definition at line 774 of file OOTexture.m.
References kOOTextureAllowCubeMap, kOOTextureDefaultAnisotropy, kOOTextureDefaultLODBias, kOOTextureExtractChannelA, kOOTextureExtractChannelB, kOOTextureExtractChannelG, kOOTextureExtractChannelMask, kOOTextureExtractChannelNone, kOOTextureExtractChannelR, kOOTextureMagFilterLinear, kOOTextureMagFilterMask, kOOTextureMagFilterNearest, kOOTextureMinFilterDefault, kOOTextureMinFilterLinear, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, kOOTextureMinFilterNearest, kOOTextureNoShrink, kOOTextureRepeatS, kOOTextureRepeatT, and nil.
NSString * OOTextureCacheKeyForSpecifier | ( | id | specifier | ) |
Definition at line 924 of file OOTexture.m.
uint8_t OOTextureComponentsForFormat | ( | OOTextureDataFormat | format | ) |
Definition at line 667 of file OOTexture.m.
References kOOTextureDataGrayscale, kOOTextureDataGrayscaleAlpha, kOOTextureDataInvalid, and kOOTextureDataRGBA.
NSDictionary * OOTextureSpecFromObject | ( | id | object, |
NSString * | defaultName ) |
Definition at line 647 of file OOTexture.m.
References nil.
OOTextureInfo gOOTextureInfo |
Definition at line 101 of file OOTexture.m.
Referenced by OOApplyTextureOptionDefaults(), OOCubeMapsAvailable(), and OOGenerateTextureCacheKey().
NSString* const kOOTextureSpecifierAnisotropyKey = @"anisotropy" |
Definition at line 54 of file OOTexture.m.
NSString* const kOOTextureSpecifierBindingKey = @"binding" |
Definition at line 61 of file OOTexture.m.
NSString* const kOOTextureSpecifierCubeMapKey = @"cube_map" |
Definition at line 53 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
NSString* const kOOTextureSpecifierExtraShrinkKey = @"extra_shrink" |
Definition at line 50 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
|
static |
Definition at line 64 of file OOTexture.m.
NSString* const kOOTextureSpecifierIlluminationModeKey = @"illumination_mode" |
Definition at line 58 of file OOTexture.m.
NSString* const kOOTextureSpecifierLODBiasKey = @"texture_LOD_bias" |
Definition at line 55 of file OOTexture.m.
NSString* const kOOTextureSpecifierMagFilterKey = @"mag_filter" |
Definition at line 48 of file OOTexture.m.
NSString* const kOOTextureSpecifierMinFilterKey = @"min_filter" |
Definition at line 47 of file OOTexture.m.
NSString* const kOOTextureSpecifierModulateColorKey = @"color" |
Definition at line 57 of file OOTexture.m.
NSString* const kOOTextureSpecifierNameKey = @"name" |
Definition at line 45 of file OOTexture.m.
NSString* const kOOTextureSpecifierNoShrinkKey = @"no_shrink" |
Definition at line 49 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
NSString* const kOOTextureSpecifierRepeatSKey = @"repeat_s" |
Definition at line 51 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
NSString* const kOOTextureSpecifierRepeatTKey = @"repeat_t" |
Definition at line 52 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
NSString* const kOOTextureSpecifierScaleFactorKey = @"scale_factor" |
Definition at line 60 of file OOTexture.m.
NSString* const kOOTextureSpecifierSelfColorKey = @"self_color" |
Definition at line 59 of file OOTexture.m.
NSString* const kOOTextureSpecifierSwizzleKey = @"extract_channel" |
Definition at line 46 of file OOTexture.m.
|
static |
Definition at line 96 of file OOTexture.m.
|
static |
Definition at line 100 of file OOTexture.m.
|
static |
Definition at line 123 of file OOTexture.m.
|
static |
Definition at line 95 of file OOTexture.m.
|
static |
Definition at line 97 of file OOTexture.m.