This commit is contained in:
bloeys
2022-06-30 06:45:25 +04:00
parent d2052ecb5c
commit 75361138c7

View File

@ -32,7 +32,6 @@ func (p *program) Update() {
if input.IsQuitClicked() { if input.IsQuitClicked() {
p.shouldRun = false p.shouldRun = false
} }
} }
func (p *program) Render() { func (p *program) Render() {
@ -66,6 +65,8 @@ func main() {
panic("Failed to create window. Err: " + err.Error()) panic("Failed to create window. Err: " + err.Error())
} }
engine.SetVSync(true)
p := &program{ p := &program{
shouldRun: true, shouldRun: true,
win: win, win: win,