func main() { app.Run(app.Callbacks{ Start: start, Stop: stop, Draw: draw, }) }
func main() { app.Run(app.Callbacks{ Start: onStart, Stop: onStop, Draw: onDraw, }) }
func main() { app.Run(app.Callbacks{ Start: start, Draw: draw, Stop: stop, Touch: touch, }) }
func main() { // checkNetwork runs only once when the app first loads. go checkNetwork() app.Run(app.Callbacks{ Draw: draw, }) }
func main() { // TODO(jbd): Handle touch to turn on/off the beats. app.Run(app.Callbacks{ Start: start, Stop: stop, Draw: draw, Touch: touch, }) }
func main() { app.Run(app.Callbacks{ Draw: func() { gl.ClearColor(0, 0, 1, 1) // blue gl.Clear(gl.COLOR_BUFFER_BIT) }, Touch: func(e event.Touch) { fmt.Println(e) }, }) }
func main() { app.Run(app.Callbacks{ Start: start, Stop: stop, Draw: draw, Touch: touch, Config: config, }) }
func main() { e := Engine{} app.Run(app.Callbacks{ Start: e.Start, Stop: e.Stop, Draw: e.Draw, Touch: e.Touch, Config: e.Config, }) }
func main() { app.Run(app.Callbacks{ Draw: func() { if scene == nil { loadScene(40) } now := clock.Time(time.Since(start) * 60 / time.Second) if now == lastClock { return } lastClock = now eng.Render(scene, now) }, Touch: func(e event.Touch) { if e.Type != event.TouchStart { return } eng.SetSubTex(kn, loadTexture((int(e.Loc.X) * (int(e.Loc.Y/25) + 1)))) }, }) }
func main() { app := cli.NewApp() app.Usage = "Start a REx Demo server" app.Action = AppMain app.Run(os.Args) }
func main() { app.Run(app.Callbacks{}) }
func main() { app.Run(app.Callbacks{ Draw: draw, }) }
func main() { app.Run(app.Callbacks{ Draw: draw, Touch: touch, }) }
func main() { app.Run(app.Callbacks{Start: java.Init}) }