Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
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

Definition at line 101 of file OOTextureInternal.h.

◆ GL_TEXTURE_MAX_LEVEL

#define GL_TEXTURE_MAX_LEVEL   0x813D

Definition at line 118 of file OOTextureInternal.h.

◆ 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{
911 {
912 anisotropy = 0.0f;
913 }
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
unsigned anisotropyAvailable
unsigned textureLODBiasAvailable

References OOTextureInfo::anisotropyAvailable, gOOTextureInfo, kOOTextureMinFilterMask, kOOTextureMinFilterMipMap, kOOTextureNoFNFMessage, OOApplyTextureOptionDefaults(), and OOTextureInfo::textureLODBiasAvailable.

Referenced by OOTexture(OOPrivate)::addToCaches.

+ 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

Variable Documentation

◆ gOOTextureInfo

OOTextureInfo gOOTextureInfo
extern