Interface ITexture
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
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
FlipY
Whether the texture is flipped vertically when it is drawn.
bool FlipY { get; }
Property Value
Height
The height of the texture, in pixels.
int Height { get; }
Property Value
Width
The width of the texture, in pixels.
int Width { get; }
Property Value
Methods
SetColor(Color)
Sets the colour the texture is tinted with.
void SetColor(Color color)
Parameters
colorColor