ebiten/graphics/texture_factory.go
2013-12-18 18:05:28 +09:00

24 lines
404 B
Go

package graphics
import (
"image"
)
type TextureCreatedEvent struct {
Tag interface{}
Id TextureId
Error error
}
type RenderTargetCreatedEvent struct {
Tag interface{}
Id RenderTargetId
Error error
}
type TextureFactory interface {
CreateRenderTarget(tag interface{}, width, height int)
CreateTexture(tag interface{}, img image.Image, filter Filter)
Events() <-chan interface{}
}