Table of Contents

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

stream Stream

The stream.

Returns

TextureModel

Create(string)

Creates texture model from a specified texture path

TextureModel? Create(string texturePath)

Parameters

texturePath string

The texture path.

Returns

TextureModel