mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ebiten: update comments about Set
Set no longer loads pixels from GPU.
This commit is contained in:
parent
8aacf067dd
commit
84289a06ba
4
image.go
4
image.go
@ -887,10 +887,6 @@ func (i *Image) at(x, y int) (r, g, b, a byte) {
|
||||
//
|
||||
// Set implements the standard draw.Image's Set.
|
||||
//
|
||||
// Set loads pixels from GPU to system memory if necessary, which means that Set can be slow.
|
||||
//
|
||||
// In the current implementation, successive calls of Set invokes loading pixels at most once, so this is efficient.
|
||||
//
|
||||
// If the image is disposed, Set does nothing.
|
||||
func (i *Image) Set(x, y int, clr color.Color) {
|
||||
i.copyCheck()
|
||||
|
Loading…
Reference in New Issue
Block a user