Interface ITextureModelRepository
- Namespace
- HelixToolkit.SharpDX
- Assembly
- HelixToolkit.SharpDX.dll
Used to cache texture models. Reuse existing texture model to avoid duplicate texture loading.
public interface ITextureModelRepository
Methods
Create(Stream)
Creates texture model from a specified stream such as memory stream or file stream.
This is used for implicit conversion from a Stream to TextureModel
TextureModel? Create(Stream stream)
Parameters
streamStreamThe stream.
Returns
Create(string)
Creates texture model from a specified texture path
TextureModel? Create(string texturePath)
Parameters
texturePathstringThe texture path.