Oolite 1.91.0.7658-250404-b1488af
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
OOTextureInternal.h File Reference
+ Include dependency graph for OOTextureInternal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

category  OOTexture(SubclassInterface)
 
category  OOTexture(SubclassResponsibilities)
 
category  OOTexture(SubclassOptional)
 
struct  OOTextureInfo
 

Macros

#define GL_CLAMP_TO_EDGE   GL_CLAMP
 
#define OO_GL_CLIENT_STORAGE   (0)
 
#define EnableClientStorage()
 
#define GL_TEXTURE_MAX_LEVEL   0x813D
 

Typedefs

typedef struct OOTextureInfo OOTextureInfo
 

Functions

NSString * OOGenerateTextureCacheKey (NSString *directory, NSString *name, OOTextureFlags options, float anisotropy, float lodBias)
 
NSString * OOTextureCacheKeyForSpecifier (id specifier)
 

Variables

OOTextureInfo gOOTextureInfo
 

Macro Definition Documentation

◆ EnableClientStorage

#define EnableClientStorage ( )
Value:
do {} while (0)

Definition at line 110 of file OOTextureInternal.h.

◆ GL_CLAMP_TO_EDGE

#define GL_CLAMP_TO_EDGE   GL_CLAMP

◆ GL_TEXTURE_MAX_LEVEL

#define GL_TEXTURE_MAX_LEVEL   0x813D

◆ OO_GL_CLIENT_STORAGE

#define OO_GL_CLIENT_STORAGE   (0)

Definition at line 109 of file OOTextureInternal.h.

Typedef Documentation

◆ OOTextureInfo

typedef struct OOTextureInfo OOTextureInfo

Function Documentation

◆ OOGenerateTextureCacheKey()

NSString * OOGenerateTextureCacheKey ( NSString * directory,
NSString * name,
OOTextureFlags options,
float anisotropy,
float lodBias )

Definition at line 908 of file OOTexture.m.

909{
910 if (!gOOTextureInfo.anisotropyAvailable || (options & kOOTextureMinFilterMask) != kOOTextureMinFilterMipMap)
911 {
912 anisotropy = 0.0f;
913 }
914 if (!gOOTextureInfo.textureLODBiasAvailable || (options & kOOTextureMinFilterMask) != kOOTextureMinFilterMipMap)
915 {
916 lodBias = 0.0f;
917 }
919
920 return [NSString stringWithFormat:@"%@%@%@:0x%.4X/%g/%g", directory ? directory : (NSString *)@"", directory ? @"/" : @"", name, options, anisotropy, lodBias];
921}
@ kOOTextureNoFNFMessage
Definition OOTexture.h:58
@ kOOTextureMinFilterMask
Definition OOTexture.h:72
@ kOOTextureMinFilterMipMap
Definition OOTexture.h:48
OOTextureFlags OOApplyTextureOptionDefaults(OOTextureFlags options)
Definition OOTexture.m:855
OOTextureInfo gOOTextureInfo
Definition OOTexture.m:101

References gOOTextureInfo, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, kOOTextureNoFNFMessage, and OOApplyTextureOptionDefaults().

Referenced by OOTextureCacheKeyForSpecifier(), and OOTexture::textureWithName:inFolder:options:anisotropy:lodBias:.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ OOTextureCacheKeyForSpecifier()

NSString * OOTextureCacheKeyForSpecifier ( id specifier)

Definition at line 924 of file OOTexture.m.

925{
926 NSString *name;
927 OOTextureFlags options;
928 float anisotropy;
929 float lodBias;
930
931 OOInterpretTextureSpecifier(specifier, &name, &options, &anisotropy, &lodBias, NO);
932 return OOGenerateTextureCacheKey(@"Textures", name, options, anisotropy, lodBias);
933}
uint32_t OOTextureFlags
Definition OOTexture.h:98
NSString * OOGenerateTextureCacheKey(NSString *directory, NSString *name, OOTextureFlags options, float anisotropy, float lodBias)
Definition OOTexture.m:908
BOOL OOInterpretTextureSpecifier(id specifier, NSString **outName, OOTextureFlags *outOptions, float *outAnisotropy, float *outLODBias, BOOL ignoreExtract)
Definition OOTexture.m:694

References OOGenerateTextureCacheKey(), and OOInterpretTextureSpecifier().

Referenced by OOCombinedEmissionMapGenerator(Private)::constructCacheKey.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ gOOTextureInfo