Exemplo n.º 1
0
Arquivo: main.go Projeto: james4k/exp
func render(wnd *glfwui.Window, app *app) {
	wnd.MakeContextCurrent()
	defer wnd.DetachContext()
	blendish.Init()
	for syncswap := range app.drawc {
		draw(wnd, app)
		if !syncswap {
			app.donec <- true
		}
		wnd.SwapBuffers()
		if syncswap {
			app.donec <- true
		}
	}
}