From e03455a979abf4444d4362dacbbf55c6915d3b69 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 25 May 2021 11:40:23 +0200 Subject: Make Geometry Types iterable --- app.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app.go') diff --git a/app.go b/app.go index 119e17d..0591be9 100644 --- a/app.go +++ b/app.go @@ -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) } -- cgit v1.2.3-70-g09d2