ebiten/graphics/texture_factory.go

29 lines
523 B
Go
Raw Normal View History

package graphics
import (
"image"
)
type TextureCreatedEvent struct {
2013-12-08 08:19:24 +01:00
Tag interface{}
Id TextureId
Error error
}
type RenderTargetCreatedEvent struct {
2013-12-08 08:19:24 +01:00
Tag interface{}
2013-12-07 17:35:24 +01:00
Id RenderTargetId
Error error
}
type TextureFactoryEvents interface {
TextureCreated() <-chan TextureCreatedEvent
RenderTargetCreated() <-chan RenderTargetCreatedEvent
}
type TextureFactory interface {
2013-12-08 08:19:24 +01:00
CreateRenderTarget(tag interface{}, width, height int)
CreateTexture(tag interface{}, img image.Image)
TextureFactoryEvents
}