| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
package gldriver |
| 8 |
|
| 9 |
import ( |
| 10 |
"fmt" |
| 11 |
"runtime" |
| 12 |
|
| 13 |
"golang.org/x/exp/shiny/screen" |
| 14 |
) |
| 15 |
|
| 16 |
const useLifecycler = true |
| 17 |
const handleSizeEventsAtChannelReceive = true |
| 18 |
|
| 19 |
var errUnsupported = fmt.Errorf("gldriver: unsupported GOOS/GOARCH %s/%s or cgo not enabled", runtime.GOOS, runtime.GOARCH) |
| 20 |
|
| 21 |
func newWindow(opts *screen.NewWindowOptions) (uintptr, error) { return 0, errUnsupported } |
| 22 |
|
| 23 |
func initWindow(id *windowImpl) {} |
| 24 |
func showWindow(id *windowImpl) {} |
| 25 |
func closeWindow(id uintptr) {} |
| 26 |
func drawLoop(w *windowImpl) {} |
| 27 |
|
| 28 |
func surfaceCreate() error { return errUnsupported } |
| 29 |
func main(f func(screen.Screen)) error { return errUnsupported } |