app: rename EndDraw to EndPaint.

Change-Id: I3e38df0e21be2246dd16886fa00c9360d42db145
Reviewed-on: https://go-review.googlesource.com/12282
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Nigel Tao
2015-07-16 03:33:11 +00:00
parent 460bd28e6c
commit b43065626f
8 changed files with 17 additions and 22 deletions
+3 -3
View File
@@ -70,8 +70,8 @@ func main() {
c = e
touchLoc = geom.Point{c.Width / 2, c.Height / 2}
case paint.Event:
onDraw(c)
a.EndDraw()
onPaint(c)
a.EndPaint()
case touch.Event:
touchLoc = e.Loc
}
@@ -104,7 +104,7 @@ func onStop() {
gl.DeleteBuffer(buf)
}
func onDraw(c config.Event) {
func onPaint(c config.Event) {
gl.ClearColor(1, 0, 0, 1)
gl.Clear(gl.COLOR_BUFFER_BIT)