diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-05-25 11:40:23 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-05-25 11:40:23 +0200 |
commit | e03455a979abf4444d4362dacbbf55c6915d3b69 (patch) | |
tree | 9aacd6948a4ab86d7ff2ecfb71dc17a1a9260cc4 /app.go | |
parent | d6828f4039352a44a1389313ba856369932732e4 (diff) | |
download | stlscope-e03455a979abf4444d4362dacbbf55c6915d3b69.tar stlscope-e03455a979abf4444d4362dacbbf55c6915d3b69.tar.zst stlscope-e03455a979abf4444d4362dacbbf55c6915d3b69.zip |
Make Geometry Types iterable
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -50,8 +50,11 @@ func newApp() App { func (application *App) handle() { glfw.PollEvents() application.window.SwapBuffers() - trafo := mgl32.HomogRotate3D(float32(glfw.GetTime()) * 3, mgl32.Vec3{0, 1, 1}) + + // generate and set transformation var scale float32 = 0.01 + trafo := mgl32.Ident4() + trafo = trafo.Mul4(mgl32.HomogRotate3D(float32(glfw.GetTime()) * 3, mgl32.Vec3{0, 1, 1})) trafo = trafo.Mul4(mgl32.Scale3D(scale, scale, scale)) application.graphics.setTrafo(trafo) } |