From 9af76dbbf944349c3dd9b1bea6e82e57a7e9bfa9 Mon Sep 17 00:00:00 2001 From: gucio321 Date: Tue, 29 Oct 2024 19:29:16 +0100 Subject: [PATCH] update example --- examples/gizmo/main.go | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/examples/gizmo/main.go b/examples/gizmo/main.go index 9d815dc0..ade3955f 100644 --- a/examples/gizmo/main.go +++ b/examples/gizmo/main.go @@ -1,6 +1,8 @@ package main import ( + "fmt" + "github.com/AllenDang/cimgui-go/imguizmo" "github.com/AllenDang/giu" ) @@ -36,21 +38,10 @@ var ( func gizmos() []giu.GizmoI { return []giu.GizmoI{ giu.Grid(), - giu.Cube(cube), + giu.Cube(cube), //.Manipulate(), + giu.Manipulate(cube), giu.Custom(func() { - /* - imguizmo.ManipulateV( - //&(View[0]), - view.Matrix(), - projection.Matrix(), - imguizmo.OPERATION(zmoOP), - imguizmo.MODE(zmoMODE), - cube.Matrix(), - nil, nil, - nil, - nil) - */ - + fmt.Println(cube) /* imguizmo.ViewManipulateFloat( view.Matrix(), @@ -69,9 +60,7 @@ func loop() { giu.Window("Gizmo demo").Layout( giu.Gizmo(view, projection).Gizmos( - giu.Custom(func() { - // fmt.Println("Hello world from window gizmos") - }), + gizmos()..., ), ) }