TextureAtlasBuilder.PackTextures(List, int, int) Method
Definition
Namespace: Brine2D.Rendering.SDL.TextureAtlas
Packs textures using a shelf-packing algorithm. Simple and efficient for sprite-based games.
C#
private System.Collections.Generic.List<Brine2D.Rendering.SDL.TextureAtlas.TextureAtlasBuilder.PackedRegion> PackTextures(System.Collections.Generic.List<Brine2D.Rendering.SDL.TextureAtlas.TextureAtlasBuilder.LoadedTexture> textures, out int atlasWidth, out int atlasHeight);
Parameters
textures System.Collections.Generic.List<Brine2D.Rendering.SDL.TextureAtlas.TextureAtlasBuilder.LoadedTexture>
atlasWidth System.Int32
atlasHeight System.Int32
Returns
System.Collections.Generic.List<Brine2D.Rendering.SDL.TextureAtlas.TextureAtlasBuilder.PackedRegion>