Bug fix: Drawer2 -> GraphicsContextDrawer

This commit is contained in:
Hajime Hoshi 2014-12-09 22:22:17 +09:00
parent 164b320170
commit 31f33b0154
2 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,7 @@ type canvas 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.context.PreUpdate()
})

5
ui.go
View File

@ -6,12 +6,11 @@ type UI interface {
Terminate()
}
// FIXME: rename this
type Drawer2 interface {
type GraphicsContextDrawer interface {
Draw(c GraphicsContext) error
}
type Canvas interface {
Draw(drawer Drawer2) error
Draw(drawer GraphicsContextDrawer) error
IsClosed() bool
}