GlbData.UseTexture

UseTexture(ImageGlb, TextureSampler)

Creates or reuses a Texture instance at !:GlbImage.LogicalTextures.

public Texture UseTexture(ImageGlb primary, TextureSampler sampler = null)
ParameterTypeDescription
primaryImageGlbThe source ImageGlb.
samplerTextureSamplerThe source TextureSampler.

Return Value

A Texture instance.

See Also


UseTexture(ImageGlb, ImageGlb, TextureSampler)

Creates or reuses a Texture instance at !:GlbImage.LogicalTextures.

public Texture UseTexture(ImageGlb primary, ImageGlb fallback, TextureSampler sampler = null)
ParameterTypeDescription
primaryImageGlbThe source ImageGlb.
fallbackImageGlbThe source ImageGlb.
samplerTextureSamplerThe source TextureSampler.

Return Value

A Texture instance.

See Also