C# Class PsmFramework.Engines.DrawEngine2d.Textures.TextureManager

Inheritance: ManagerBase
Afficher le fichier Open project: artwallace/PsmFramework Class Usage Examples

Méthodes publiques

Méthode Description
CreateTexture ( String key, Int32 width, Int32 height, PixelFormat pixelFormat, TextureCachePolicy cachePolicy = TextureCachePolicy.DisposeAfterLastUse ) : Texture2dPlus
CreateTexture ( String path, TextureCachePolicy cachePolicy = TextureCachePolicy.DisposeAfterLastUse ) : Texture2dPlus
GetTexture ( String key ) : Texture2dPlus
SetOpenGlTexture ( String key, Int32 index ) : void

Méthodes protégées

Méthode Description
Cleanup ( ) : void
Initialize ( ) : void

Private Methods

Méthode Description
AddUser ( String key, TiledTexture user ) : void
ApplyCachePolicyForRemovalOfUser ( String key ) : void
CleanupCachePolicies ( ) : void
CleanupTextures ( ) : void
CleanupUsers ( ) : void
InitializeCachePolicies ( ) : void
InitializeTextures ( ) : void
InitializeUsers ( ) : void
RegisterTexture ( String key, Texture2dPlus texture, TextureCachePolicy cachePolicy ) : void
RemoveUser ( String key, TiledTexture user ) : void
TextureManager ( DrawEngine2d drawEngine2d ) : System
UnregisterTexture ( String key ) : void

Method Details

Cleanup() protected méthode

protected Cleanup ( ) : void
Résultat void

CreateTexture() public méthode

public CreateTexture ( String key, Int32 width, Int32 height, PixelFormat pixelFormat, TextureCachePolicy cachePolicy = TextureCachePolicy.DisposeAfterLastUse ) : Texture2dPlus
key String
width System.Int32
height System.Int32
pixelFormat PixelFormat
cachePolicy TextureCachePolicy
Résultat Texture2dPlus

CreateTexture() public méthode

public CreateTexture ( String path, TextureCachePolicy cachePolicy = TextureCachePolicy.DisposeAfterLastUse ) : Texture2dPlus
path String
cachePolicy TextureCachePolicy
Résultat Texture2dPlus

GetTexture() public méthode

public GetTexture ( String key ) : Texture2dPlus
key String
Résultat Texture2dPlus

Initialize() protected méthode

protected Initialize ( ) : void
Résultat void

SetOpenGlTexture() public méthode

public SetOpenGlTexture ( String key, Int32 index ) : void
key String
index System.Int32
Résultat void