This repository has been archived on 2024-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
x/texture.go

10 lines
227 B
Go
Raw Normal View History

2023-08-20 22:35:55 -06:00
package x
import "image"
2023-08-22 19:24:38 -06:00
import "git.tebibyte.media/tomo/x/canvas"
2023-08-24 13:54:22 -06:00
import "git.tebibyte.media/tomo/tomo/canvas"
2023-08-20 22:35:55 -06:00
2023-08-24 13:54:22 -06:00
func (backend Backend) NewTexture (source image.Image) canvas.Texture {
2023-08-23 17:21:28 -06:00
return xcanvas.NewTextureFrom(source)
}