mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
29 lines
523 B
Go
29 lines
523 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 TextureFactoryEvents interface {
|
|
TextureCreated() <-chan TextureCreatedEvent
|
|
RenderTargetCreated() <-chan RenderTargetCreatedEvent
|
|
}
|
|
|
|
type TextureFactory interface {
|
|
CreateRenderTarget(tag interface{}, width, height int)
|
|
CreateTexture(tag interface{}, img image.Image)
|
|
TextureFactoryEvents
|
|
}
|