TextureAtlasBuilder Class
Builds texture atlases by packing multiple textures into a single larger texture. Uses a simple shelf-packing algorithm optimized for sprite-based games.
public sealed class TextureAtlasBuilder : Brine2D.Rendering.TextureAtlas.ITextureAtlasBuilder
Inheritance System.Object → TextureAtlasBuilder
Implements ITextureAtlasBuilder
| Methods | |
|---|---|
| LoadTextureToSurfaceAsync(string, CancellationToken) | Loads a texture file to an SDL surface (without creating GPU texture). |
| PackTextures(List<LoadedTexture>, int, int) | Packs textures using a shelf-packing algorithm. Simple and efficient for sprite-based games. |