mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
restorable: Remove Pixels that is not used anywhere
This commit is contained in:
parent
b962d58097
commit
f613cd1407
@ -132,15 +132,6 @@ func (i *Image) BasePixelsForTesting() []byte {
|
|||||||
return i.basePixels
|
return i.basePixels
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pixels returns the image's pixel bytes.
|
|
||||||
//
|
|
||||||
// Pixels tries to read pixels from GPU if needed.
|
|
||||||
// It is assured that GPU is not accessed if the opration against the image is only ReplacePixels.
|
|
||||||
func (i *Image) Pixels() []byte {
|
|
||||||
i.readPixelsFromGPUIfNeeded()
|
|
||||||
return i.basePixels
|
|
||||||
}
|
|
||||||
|
|
||||||
// Size returns the image's size.
|
// Size returns the image's size.
|
||||||
func (i *Image) Size() (int, int) {
|
func (i *Image) Size() (int, int) {
|
||||||
return i.image.Size()
|
return i.image.Size()
|
||||||
|
Loading…
Reference in New Issue
Block a user