mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 04:08:53 +01:00
24 lines
419 B
Go
24 lines
419 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, filter Filter)
|
|
CreateTexture(tag interface{}, img image.Image, filter Filter)
|
|
Events() <-chan interface{}
|
|
}
|