Struct Texture2D
- Namespace
- MohawkGame2D
- Assembly
- GAME 10003 Game Development Foundations - 2D Game Template.dll
Represents a 2D texture.
public readonly record struct Texture2D : IEquatable<Texture2D>
- Implements
- Inherited Members
Remarks
Wrapper around Raylib.Texture2D
Properties
FileName
Name of this texture file.
public string FileName { get; init; }
Property Value
FilePath
File path of this texture.
public string FilePath { get; init; }
Property Value
Height
Texture height in pixels.
public int Height { get; }
Property Value
Width
Texture width in pixels.
public int Width { get; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.