mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 06:54:28 +01:00
Bug fix: Drawer2 -> GraphicsContextDrawer
This commit is contained in:
parent
164b320170
commit
31f33b0154
@ -17,7 +17,7 @@ type canvas struct {
|
|||||||
funcsDone chan struct{}
|
funcsDone chan struct{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *canvas) Draw(d ebiten.Drawer2) (err error) {
|
func (c *canvas) Draw(d ebiten.GraphicsContextDrawer) (err error) {
|
||||||
c.use(func() {
|
c.use(func() {
|
||||||
c.context.PreUpdate()
|
c.context.PreUpdate()
|
||||||
})
|
})
|
||||||
|
5
ui.go
5
ui.go
@ -6,12 +6,11 @@ type UI interface {
|
|||||||
Terminate()
|
Terminate()
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: rename this
|
type GraphicsContextDrawer interface {
|
||||||
type Drawer2 interface {
|
|
||||||
Draw(c GraphicsContext) error
|
Draw(c GraphicsContext) error
|
||||||
}
|
}
|
||||||
|
|
||||||
type Canvas interface {
|
type Canvas interface {
|
||||||
Draw(drawer Drawer2) error
|
Draw(drawer GraphicsContextDrawer) error
|
||||||
IsClosed() bool
|
IsClosed() bool
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user