34#import <Foundation/Foundation.h>
101#define kOOTextureDefaultAnisotropy 0.5
102#define kOOTextureDefaultLODBias -0.25
132+ (id) textureWithName:(NSString *)name
133 inFolder:(NSString *)directory
135 anisotropy:(GLfloat)anisotropy
136 lodBias:(GLfloat)lodBias;
144+ (id) textureWithName:(NSString *)name
145 inFolder:(NSString*)directory;
163+ (id) textureWithConfiguration:(
id)configuration;
164+ (id) textureWithConfiguration:(
id)configuration extraOptions:(
OOTextureFlags)extraOptions;
188- (void) ensureFinishedLoading;
194- (BOOL) isFinishedLoading;
196- (NSString *) cacheKey;
201- (NSSize) dimensions;
206- (NSSize) originalDimensions;
216- (
OOPixMap) copyPixMapRepresentation;
220- (BOOL) isRectangleTexture;
248- (NSSize) texCoordsScale;
253- (GLint) glTextureName;
259+ (void) rebindAllTextures;
262- (void) setTrace:(BOOL)trace;
264+ (NSArray *) cachedTexturesByAge;
265+ (NSSet *) allTextures;
275@interface NSDictionary (OOTextureConveniences)
276- (NSDictionary *) oo_textureSpecifierForKey:(
id)key defaultName:(NSString *)name;
279@interface NSArray (OOTextureConveniences)
280- (NSDictionary *) oo_textureSpecifierAtIndex:(
unsigned)index defaultName:(NSString *)name;
@ kOOPixMapGrayscaleAlpha
NSString *const kOOTextureSpecifierSelfColorKey
NSString *const kOOTextureSpecifierNoShrinkKey
NSString *const kOOTextureSpecifierNameKey
BOOL OOCubeMapsAvailable(void)
uint8_t OOTextureComponentsForFormat(OOTextureDataFormat format)
@ kOOTextureDataGrayscaleAlpha
@ kOOTextureDataGrayscale
NSDictionary * OOMakeTextureSpecifier(NSString *name, OOTextureFlags options, float anisotropy, float lodBias, BOOL internal)
NSString *const kOOTextureSpecifierRepeatTKey
OOTextureFlags OOApplyTextureOptionDefaults(OOTextureFlags options)
NSDictionary * OOTextureSpecFromObject(id object, NSString *defaultName)
NSString *const kOOTextureSpecifierScaleFactorKey
NSString *const kOOTextureSpecifierBindingKey
NSString *const kOOTextureSpecifierIlluminationModeKey
NSString *const kOOTextureSpecifierMinFilterKey
@ kOOTextureAllowRectTexture
@ kOOTextureExtractChannelA
@ kOOTextureExtractChannelB
@ kOOTextureFlagsAllowedForCubeMap
@ kOOTextureMinFilterDefault
@ kOOTextureExtractChannelNone
@ kOOTextureMagFilterMask
@ kOOTextureExtractChannelMask
@ kOOTextureMinFilterLinear
@ kOOTextureMinFilterMask
@ kOOTextureDefaultOptions
@ kOOTextureMinFilterMipMap
@ kOOTextureMagFilterNearest
@ kOOTextureExtractChannelG
@ kOOTextureFlagsAllowedForRectangleTexture
@ kOOTextureExtractChannelR
@ kOOTextureMagFilterLinear
@ kOOTextureMinFilterNearest
NSString *const kOOTextureSpecifierMagFilterKey
NSString *const kOOTextureSpecifierAnisotropyKey
NSString *const kOOTextureSpecifierRepeatSKey
OOPixMapFormat OOTextureDataFormat
NSString *const kOOTextureSpecifierModulateColorKey
BOOL OOInterpretTextureSpecifier(id specifier, NSString **outName, OOTextureFlags *outOptions, float *outAnisotropy, float *outLODBias, BOOL ignoreExtract)
NSString *const kOOTextureSpecifierCubeMapKey
NSString *const kOOTextureSpecifierSwizzleKey
NSString *const kOOTextureSpecifierExtraShrinkKey
NSString *const kOOTextureSpecifierLODBiasKey