summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/main.go b/main.go
index e2d6e43..8f2afcc 100644
--- a/main.go
+++ b/main.go
@@ -30,15 +30,13 @@ func main() {
var app App = newApp()
defer app.terminate() // GLFW needs to be terminated!
- // init OpenGL
- program := initOpenGL()
-
- vao := makeVao(triangle)
+ // initialize graphics
+ var graphics Graphics = newGraphics()
// main loop
for !app.window.ShouldClose() {
+ graphics.draw()
app.handle()
- draw(vao, program)
}
}