mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
graphics: Fix comments on ReplacePixels
This commit is contained in:
parent
875a529708
commit
dc96d25457
4
image.go
4
image.go
@ -457,9 +457,9 @@ func (i *Image) Dispose() error {
|
||||
|
||||
// ReplacePixels replaces the pixels of the image with p.
|
||||
//
|
||||
// The given p must represent RGBA pre-multiplied alpha values. len(p) must equal to 4 * (image width) * (image height).
|
||||
// The given p must represent RGBA pre-multiplied alpha values. len(p) must equal to 4 * (bounds width) * (bounds height).
|
||||
//
|
||||
// ReplacePixels may be slow (as for implementation, this calls glTexSubImage2D).
|
||||
// ReplacePixels works on a sub-image.
|
||||
//
|
||||
// When len(p) is not appropriate, ReplacePixels panics.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user