Header menu logo Nu

Texture.TextureClient Type

Memoizes and optionally threads texture loads.

Constructors

Constructor Description

TextureClient(lazyTextureQueuesOpt)

Full Usage: TextureClient(lazyTextureQueuesOpt)

Parameters:
Returns: TextureClient
lazyTextureQueuesOpt : ConcurrentDictionary<ConcurrentQueue<LazyTexture>, ConcurrentQueue<LazyTexture>> option
Returns: TextureClient

Instance members

Instance member Description

this.LazyTextureQueue

Full Usage: this.LazyTextureQueue

Returns: ConcurrentQueue<LazyTexture>

Lazy texture queue.

Returns: ConcurrentQueue<LazyTexture>

this.Textures

Full Usage: this.Textures

Returns: Dictionary<string, Texture>

Memoized textures.

Returns: Dictionary<string, Texture>

this.TryCreateTexture

Full Usage: this.TryCreateTexture

Parameters:
Returns: Either<string, Texture>

Attempt to create a memoized texture from a file.

desireLazy : bool
minFilter : TextureMinFilter
magFilter : TextureMagFilter
anisoFilter : bool
mipmaps : bool
blockCompress : bool
filePath : string
Returns: Either<string, Texture>

this.TryCreateTextureFiltered

Full Usage: this.TryCreateTextureFiltered

Parameters:
    desireLazy : bool
    blockCompress : bool
    filePath : string

Returns: Either<string, Texture>

Attempt to create a filtered memoized texture from a file.

desireLazy : bool
blockCompress : bool
filePath : string
Returns: Either<string, Texture>

this.TryCreateTextureUnfiltered

Full Usage: this.TryCreateTextureUnfiltered

Parameters:
    desireLazy : bool
    filePath : string

Returns: Either<string, Texture>

Attempt to create an unfiltered memoized texture from a file.

desireLazy : bool
filePath : string
Returns: Either<string, Texture>

Type something to start searching.