Table of Contents

Struct LoadTextureRegionByTextureWithRegions

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

Makes a region atlas over Texture with Regions already added to it.

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

Constructors

LoadTextureRegionByTextureWithRegions(ITexture, params TextureRegion[])

Creates the parameters with regions as the regions to add.

public LoadTextureRegionByTextureWithRegions(ITexture texture, params TextureRegion[] regions)

Parameters

texture ITexture
regions TextureRegion[]

Properties

Regions

The regions to add to the atlas.

public IEnumerable<TextureRegion> Regions { get; init; }

Property Value

IEnumerable<TextureRegion>

Texture

The texture the regions are cut from.

public ITexture Texture { get; init; }

Property Value

ITexture