diff options
author | xengineering <me@xengineering.eu> | 2022-03-16 20:18:18 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-03-16 20:18:18 +0100 |
commit | 0340cb664f19ab8f14d893c8d82b6dead705a794 (patch) | |
tree | b311ee5d1040a2beabda5aab25372b0145e89ea2 /app.go | |
parent | b38538bfd5a3ad3d55473a5c3970f0a46bc63970 (diff) | |
download | stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.tar stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.tar.zst stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.zip |
Reduce code width to <= 80 characters
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) } |