Table of Contents

Interface ITexture

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

A texture on the graphics device, loaded from a file or made in code.

public interface ITexture

Properties

Color

The colour last set with SetColor(Color).

Color Color { get; }

Property Value

Color

FileName

The file the texture was loaded from. An atlas built over several files gives all of them, separated by ;.

string FileName { get; set; }

Property Value

string

FlipY

Whether the texture is flipped vertically when it is drawn.

bool FlipY { get; }

Property Value

bool

Height

The height of the texture, in pixels.

int Height { get; }

Property Value

int

Width

The width of the texture, in pixels.

int Width { get; }

Property Value

int

Methods

SetColor(Color)

Sets the colour the texture is tinted with.

void SetColor(Color color)

Parameters

color Color