Table of Contents

Interface ITextureModelLoader

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

Loads the textures that a view's XML declares, for the controls that use them.

public interface ITextureModelLoader

Methods

Load(TextureReference, int, int)

Loads the texture named by textureReference at width by height pixels, rather than at a control's size.

ITexture Load(TextureReference textureReference, int width, int height)

Parameters

textureReference TextureReference
width int
height int

Returns

ITexture

Load(UIElement, Texture)

Loads the texture described by textureModel, sized to control.

ITexture Load(UIElement control, Texture textureModel)

Parameters

control UIElement
textureModel Texture

Returns

ITexture

Load(UIElement, TextureReference)

Loads the texture named by textureReference, sized to control.

ITexture Load(UIElement control, TextureReference textureReference)

Parameters

control UIElement
textureReference TextureReference

Returns

ITexture

LoadById(UIElement, string)

Loads the texture with the id id, sized to control.

ITexture LoadById(UIElement control, string id)

Parameters

control UIElement
id string

Returns

ITexture

LoadById(string, int, int)

Loads the texture with the id id at width by height pixels, rather than at a control's size.

ITexture LoadById(string id, int width, int height)

Parameters

id string
width int
height int

Returns

ITexture