Table of Contents

Interface ITextureFactoryProvider

Namespace
BSGameLib.Game.Textures
Assembly
BSGameLib.Game.dll

Finds the texture factory for a texture type and parameter type, and creates textures through it.

public interface ITextureFactoryProvider

Methods

CreateTexture<TTexture, TTextureParameters>(TTextureParameters)

Creates the texture that parameters describe, using the factory for its types.

TTexture CreateTexture<TTexture, TTextureParameters>(TTextureParameters parameters) where TTexture : class, ITexture where TTextureParameters : ITextureParameters

Parameters

parameters TTextureParameters

Returns

TTexture

Type Parameters

TTexture
TTextureParameters

GetFactory<TTexture, TTextureParameters>()

Returns the factory that creates TTexture from TTextureParameters.

ITextureFactory<TTexture, TTextureParameters> GetFactory<TTexture, TTextureParameters>() where TTexture : class, ITexture where TTextureParameters : ITextureParameters

Returns

ITextureFactory<TTexture, TTextureParameters>

Type Parameters

TTexture
TTextureParameters