2022-09-25 04:58:01 +00:00
|
|
|
//go:build js && wasm
|
2022-03-05 23:31:09 +00:00
|
|
|
// +build js,wasm
|
|
|
|
|
|
|
|
package native
|
|
|
|
|
|
|
|
import (
|
2023-12-09 05:52:34 +00:00
|
|
|
"errors"
|
2022-03-05 23:31:09 +00:00
|
|
|
"image"
|
|
|
|
|
|
|
|
"git.kirsle.net/go/render"
|
|
|
|
)
|
|
|
|
|
2022-09-25 00:45:54 +00:00
|
|
|
func HasTouchscreen(e render.Engine) bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2022-03-05 23:31:09 +00:00
|
|
|
func TextToImage(e render.Engine, text render.Text) (image.Image, error) {
|
|
|
|
return nil, errors.New("not supported on WASM")
|
|
|
|
}
|
2022-09-25 04:58:01 +00:00
|
|
|
|
|
|
|
func CopyToClipboard(text string) error {
|
|
|
|
return errors.New("not supported on WASM")
|
|
|
|
}
|
2023-12-09 05:52:34 +00:00
|
|
|
|
|
|
|
func CountTextures(e render.Engine) string {
|
|
|
|
return "n/a"
|
|
|
|
}
|
2023-12-09 22:59:31 +00:00
|
|
|
|
2024-02-08 06:14:48 +00:00
|
|
|
func FreeTextures() {}
|
|
|
|
|
2023-12-09 22:59:31 +00:00
|
|
|
func MaximizeWindow(e render.Engine) {}
|