Skip to content

ITextureAtlasBuilder.AddTexture(string, string) Method

Definition

Namespace: Brine2D.Rendering.TextureAtlas

Adds a texture to be packed into the atlas.

Brine2D.Rendering.TextureAtlas.ITextureAtlasBuilder AddTexture(string path, string? name=null);

Parameters

path System.String

Path to the texture file.

name System.String

Optional custom name (defaults to filename without extension).

Returns

ITextureAtlasBuilder