mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
parent
7061b34222
commit
bd1b9cdb9b
@ -49,7 +49,7 @@ func (m *Mipmap) DumpScreenshot(graphicsDriver graphicsdriver.Graphics, name str
|
|||||||
return m.orig.DumpScreenshot(graphicsDriver, name, blackbg)
|
return m.orig.DumpScreenshot(graphicsDriver, name, blackbg)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Mipmap) ReplacePixels(pix []byte, x, y, width, height int) {
|
func (m *Mipmap) WritePixels(pix []byte, x, y, width, height int) {
|
||||||
m.orig.WritePixels(pix, x, y, width, height)
|
m.orig.WritePixels(pix, x, y, width, height)
|
||||||
m.disposeMipmaps()
|
m.disposeMipmaps()
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ func (i *Image) DrawTriangles(srcs [graphics.ShaderImageCount]*Image, vertices [
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) ReplacePixels(pix []byte, x, y, width, height int) {
|
func (i *Image) ReplacePixels(pix []byte, x, y, width, height int) {
|
||||||
i.mipmap.ReplacePixels(pix, x, y, width, height)
|
i.mipmap.WritePixels(pix, x, y, width, height)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Image) ReadPixels(pixels []byte, x, y, width, height int) {
|
func (i *Image) ReadPixels(pixels []byte, x, y, width, height int) {
|
||||||
|
Loading…
Reference in New Issue
Block a user