go-packing This is the library to pack multiple images into a single texture . Usage Please look at the test code. https://github.com/tico8/go-packing/blob/master/packing_test.go#L59-L117