Table of Contents

Struct TextureRegion

Namespace
Axolotl2D.Rendering
Assembly
Axolotl2D.dll

A pixel rectangle inside a texture.

public readonly record struct TextureRegion : IEquatable<TextureRegion>
Implements
Inherited Members

Constructors

TextureRegion(int, int, int, int)

A pixel rectangle inside a texture.

public TextureRegion(int X, int Y, int Width, int Height)

Parameters

X int
Y int
Width int
Height int

Properties

Height

public int Height { get; init; }

Property Value

int

Width

public int Width { get; init; }

Property Value

int

X

public int X { get; init; }

Property Value

int

Y

public int Y { get; init; }

Property Value

int