diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) } } |