summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-03-16 20:18:18 +0100
committerxengineering <me@xengineering.eu>2022-03-16 20:18:18 +0100
commit0340cb664f19ab8f14d893c8d82b6dead705a794 (patch)
treeb311ee5d1040a2beabda5aab25372b0145e89ea2 /app.go
parentb38538bfd5a3ad3d55473a5c3970f0a46bc63970 (diff)
downloadstlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.tar
stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.tar.zst
stlscope-0340cb664f19ab8f14d893c8d82b6dead705a794.zip
Reduce code width to <= 80 characters
Diffstat (limited to 'app.go')
-rw-r--r--app.go7
1 files changed, 5 insertions, 2 deletions
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)
}