doodle/pkg/native/engine_wasm.go

28 lines
459 B
Go
Raw Permalink Normal View History

//go:build js && wasm
// +build js,wasm
package native
import (
2023-12-09 05:52:34 +00:00
"errors"
"image"
"git.kirsle.net/go/render"
)
func TextToImage(e render.Engine, text render.Text) (image.Image, error) {
return nil, errors.New("not supported on WASM")
}
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"
}
func FreeTextures() {}
func MaximizeWindow(e render.Engine) {}