From 0340cb664f19ab8f14d893c8d82b6dead705a794 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 16 Mar 2022 20:18:18 +0100 Subject: Reduce code width to <= 80 characters --- app.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app.go') diff --git a/app.go b/app.go index 30dfd44..b124f4c 100644 --- a/app.go +++ b/app.go @@ -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) } -- cgit v1.2.3-70-g09d2