internal/atlas: Add comments to moveTo

This commit is contained in:
Hajime Hoshi 2021-03-12 00:26:38 +09:00
parent ec677a258f
commit 3e7217cb86

View File

@ -193,6 +193,10 @@ type Image struct {
isolatedCount int isolatedCount int
} }
// moveTo moves its content to the given image dst.
// After moveTo is called, the image i is no longer available.
//
// moveTo is smilar to C++'s move semantics.
func (i *Image) moveTo(dst *Image) { func (i *Image) moveTo(dst *Image) {
dst.dispose(false) dst.dispose(false)
*dst = *i *dst = *i