diff options
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -41,7 +41,8 @@ func newApp(stl *StlModel) App { glfw.WindowHint(glfw.Samples, 16) // anti-aliasing log.Println("Creating Window") - app.window, err = glfw.CreateWindow(WINDOW_WIDTH, WINDOW_HEIGHT, WINDOW_TITLE, nil, nil) + app.window, err = glfw.CreateWindow(WINDOW_WIDTH, WINDOW_HEIGHT, + WINDOW_TITLE, nil, nil) if err != nil { panic(err) } @@ -58,7 +59,9 @@ func (application *App) handle() { // generate and set transformation trafo := application.homeTrafo - trafo = mgl32.HomogRotate3D(float32(glfw.GetTime()) * 0.4 * 6.282, mgl32.Vec3{0.1, 1, 0}).Mul4(trafo) // apply time-based rotation + trafo = mgl32.HomogRotate3D( + float32(glfw.GetTime()) * 0.4 * 6.282, + mgl32.Vec3{0.1, 1, 0}).Mul4(trafo) // apply time-based rotation application.graphics.setTrafo(trafo) } |