Add PollEvent so Window appears (#5)
This commit is contained in:
parent
548f2abfec
commit
9f26a016aa
|
@ -4,8 +4,9 @@ package main
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
"os"
|
||||
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
)
|
||||
|
||||
var winTitle string = "Go-SDL2 Render"
|
||||
|
@ -62,7 +63,7 @@ func run() int {
|
|||
renderer.FillRects(rects)
|
||||
|
||||
renderer.Present()
|
||||
|
||||
sdl.PollEvent()
|
||||
sdl.Delay(2000)
|
||||
|
||||
return 0
|
||||
|
|
Loading…
Reference in New Issue