Texture |
public class TextureCache : DXDeviceResource
The TextureCache type exposes the following members.
Name | Description | |
---|---|---|
TextureCache | Constructor |
Name | Description | |
---|---|---|
GenerateMipMaps | Gets or sets a Boolean that specifies if mip-maps are generated when texture is created by this TextureCache |
Name | Description | |
---|---|---|
CacheTexture(ShaderResourceView, Boolean, Object) | CacheTexture stores the texture (as ShaderResourceView) as cached texture created from the originalObject. | |
CacheTexture(ShaderResourceView, Boolean, String) | CacheTexture stores the texture (as ShaderResourceView) as cached texture created from the originalObject. | |
CleanupCache | Cleans all disposed objects from cache | |
GetTextureFromFile | Checks if a texture with specified fileName was already loaded and cached. In this case the method returns a cached texture and increases its reference count. Otherwise null is returned. You need to dispose the texture when it is not used any more. | |
GetTextureFromObject | Check cache and tries to find a texture that was created from the originalObject. If texture is not found, null is returned. The texture needs to be disposed when it is not used any more. |