()
| 13 | ) |
| 14 | |
| 15 | func main() { |
| 16 | fmt.Println("Hello, world!") |
| 17 | opts := &system.NewWindowOptions{ |
| 18 | Size: image.Pt(1024, 768), |
| 19 | StdPixels: true, |
| 20 | Title: "System Test Window", |
| 21 | } |
| 22 | w, err := system.TheApp.NewWindow(opts) |
| 23 | if err != nil { |
| 24 | panic(err) |
| 25 | } |
| 26 | |
| 27 | fmt.Println("got new window", w) |
| 28 | system.TheApp.MainLoop() |
| 29 | } |