github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/gothamgo-android/red.go (about)

     1  // +build OMIT
     2  
     3  package main
     4  
     5  import (
     6  	"golang.org/x/mobile/app"
     7  	"golang.org/x/mobile/app/debug"
     8  	"golang.org/x/mobile/gl"
     9  )
    10  
    11  func main() {
    12  	app.Run(app.Callbacks{
    13  		Draw: draw,
    14  	})
    15  }
    16  
    17  func draw() {
    18  	gl.ClearColor(1, 0, 0, 1) // RGBA value used to clear buffer: red
    19  	gl.Clear(gl.COLOR_BUFFER_BIT)
    20  	debug.DrawFPS()
    21  }