mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Remove unneeded functions
This commit is contained in:
parent
f06e541f48
commit
997668a0db
@ -198,19 +198,3 @@ func main() {
|
||||
|
||||
currentUI.Run()
|
||||
}
|
||||
|
||||
type FuncInitializer struct {
|
||||
f func(graphics.TextureFactory)
|
||||
}
|
||||
|
||||
func (i *FuncInitializer) Initialize(tf graphics.TextureFactory) {
|
||||
i.f(tf)
|
||||
}
|
||||
|
||||
type FuncDrawable struct {
|
||||
f func(graphics.Context, graphics.Texture)
|
||||
}
|
||||
|
||||
func (d *FuncDrawable) Draw(g graphics.Context, offscreen graphics.Texture) {
|
||||
d.f(g, offscreen)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user