README ¶ Btxpack Bare Texture Packer Install go install github.com/intervinn/btxpack/cmd@latest Usage Consumes folder of images, emits combined image and the metadata file. btxpack [assets] [atlas.png] [atlas.json] License MIT License. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func IsSupported(name string) bool func WriteAtlasImg(recs []Rec, to string) error func WriteAtlasMeta(recs []Rec, to string) error type Img func ScanDir(root string) ([]Img, error) type Meta type Rec func Layout(imgs []Img) []Rec Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsSupported ¶ func IsSupported(name string) bool func WriteAtlasImg ¶ func WriteAtlasImg(recs []Rec, to string) error func WriteAtlasMeta ¶ func WriteAtlasMeta(recs []Rec, to string) error Types ¶ type Img ¶ type Img struct { image.Rectangle Image image.Image Src string } func ScanDir ¶ func ScanDir(root string) ([]Img, error) type Meta ¶ type Meta struct { Name string `json:"name"` X int `json:"x"` Y int `json:"y"` W int `json:"w"` H int `json:"h"` } type Rec ¶ type Rec struct { Img X int Y int } func Layout ¶ func Layout(imgs []Img) []Rec rn it just puts all sprites in line with eachother need to make some more efficient algorithm in future Source Files ¶ View all Source files io.golayout.go Directories ¶ Show internal Expand all Path Synopsis cmd Click to show internal directories. Click to hide internal directories.