Table of Contents

Struct LoadTextureByFileName

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

Loads a texture from an image file.

public readonly record struct LoadTextureByFileName : ITextureParameters, IEquatable<LoadTextureByFileName>
Implements
Inherited Members

Constructors

LoadTextureByFileName(string, Color?)

Loads a texture from an image file.

public LoadTextureByFileName(string FileName, Color? ColorKey = null)

Parameters

FileName string

The path of the image file.

ColorKey Color?

The colour made fully transparent when the file is loaded, or null to keep the image as it is.

Properties

ColorKey

The colour made fully transparent when the file is loaded, or null to keep the image as it is.

public Color? ColorKey { get; init; }

Property Value

Color?

FileName

The path of the image file.

public string FileName { get; init; }

Property Value

string