mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
image: Remove image.DrawFilledRects (#142)
This commit is contained in:
parent
b5ed0e3d6d
commit
5c8df39496
9
image.go
9
image.go
@ -111,15 +111,6 @@ func (i *Image) DrawLines(lines Lines) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// DrawFilledRects draws filled rectangles on the image.
|
||||
func (i *Image) DrawFilledRects(rects Rects) (err error) {
|
||||
i.pixels = nil
|
||||
useGLContext(func(c *opengl.Context) {
|
||||
err = i.framebuffer.DrawFilledRects(c, rects)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// Bounds returns the bounds of the image.
|
||||
func (i *Image) Bounds() image.Rectangle {
|
||||
w, h := i.Size()
|
||||
|
Loading…
Reference in New Issue
Block a user