TextureAtlasBuilder Class
Definition
Namespace: Brine2D.Rendering.SDL.TextureAtlas
Builds texture atlases by packing multiple textures into a single larger texture. Uses a simple shelf-packing algorithm optimized for sprite-based games.
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. |