Oolite 1.91.0.7644-241112-7f5034b
|
Go to the source code of this file.
Classes | |
class | OOTexture |
category | NSDictionary(OOTextureConveniences) |
category | NSArray(OOTextureConveniences) |
Macros | |
#define | kOOTextureDefaultAnisotropy 0.5 |
#define | kOOTextureDefaultLODBias -0.25 |
Typedefs | |
typedef uint32_t | OOTextureFlags |
typedef OOPixMapFormat | OOTextureDataFormat |
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) |
Variables | |
NSString *const | kOOTextureSpecifierNameKey |
NSString *const | kOOTextureSpecifierSwizzleKey |
NSString *const | kOOTextureSpecifierMinFilterKey |
NSString *const | kOOTextureSpecifierMagFilterKey |
NSString *const | kOOTextureSpecifierNoShrinkKey |
NSString *const | kOOTextureSpecifierExtraShrinkKey |
NSString *const | kOOTextureSpecifierRepeatSKey |
NSString *const | kOOTextureSpecifierRepeatTKey |
NSString *const | kOOTextureSpecifierCubeMapKey |
NSString *const | kOOTextureSpecifierAnisotropyKey |
NSString *const | kOOTextureSpecifierLODBiasKey |
NSString *const | kOOTextureSpecifierModulateColorKey |
NSString *const | kOOTextureSpecifierIlluminationModeKey |
NSString *const | kOOTextureSpecifierSelfColorKey |
NSString *const | kOOTextureSpecifierScaleFactorKey |
NSString *const | kOOTextureSpecifierBindingKey |
#define kOOTextureDefaultAnisotropy 0.5 |
Definition at line 101 of file OOTexture.h.
Referenced by OOInterpretTextureSpecifier(), and OOMakeTextureSpecifier().
#define kOOTextureDefaultLODBias -0.25 |
Definition at line 102 of file OOTexture.h.
Referenced by OOInterpretTextureSpecifier(), and OOMakeTextureSpecifier().
typedef OOPixMapFormat OOTextureDataFormat |
Definition at line 113 of file OOTexture.h.
typedef uint32_t OOTextureFlags |
Definition at line 98 of file OOTexture.h.
anonymous enum |
Definition at line 43 of file OOTexture.h.
anonymous enum |
Enumerator | |
---|---|
kOOTextureDataInvalid | |
kOOTextureDataRGBA | |
kOOTextureDataGrayscale | |
kOOTextureDataGrayscaleAlpha |
Definition at line 105 of file OOTexture.h.
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.
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.
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.
|
extern |
Definition at line 54 of file OOTexture.m.
|
extern |
Definition at line 61 of file OOTexture.m.
|
extern |
Definition at line 53 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
|
extern |
Definition at line 50 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
|
extern |
Definition at line 58 of file OOTexture.m.
|
extern |
Definition at line 55 of file OOTexture.m.
|
extern |
Definition at line 48 of file OOTexture.m.
|
extern |
Definition at line 47 of file OOTexture.m.
|
extern |
Definition at line 57 of file OOTexture.m.
|
extern |
Definition at line 45 of file OOTexture.m.
|
extern |
Definition at line 49 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
|
extern |
Definition at line 51 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
|
extern |
Definition at line 52 of file OOTexture.m.
Referenced by OOInterpretTextureSpecifier().
|
extern |
Definition at line 60 of file OOTexture.m.
|
extern |
Definition at line 59 of file OOTexture.m.
|
extern |
Definition at line 46 of file OOTexture.m.