mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user