mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
internal/atlas: Add comments to moveTo
This commit is contained in:
parent
ec677a258f
commit
3e7217cb86
@ -193,6 +193,10 @@ type Image struct {
|
||||
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) {
|
||||
dst.dispose(false)
|
||||
*dst = *i
|
||||
|
Loading…
Reference in New Issue
Block a user