From b0a2a50d51cc71bbd815061f80be8923aa00747d Mon Sep 17 00:00:00 2001 From: gucio321 Date: Tue, 29 Oct 2024 22:51:33 +0100 Subject: [PATCH] examples/gizmo: update exmple --- examples/gizmo/main.go | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/examples/gizmo/main.go b/examples/gizmo/main.go index ade3955f..429df895 100644 --- a/examples/gizmo/main.go +++ b/examples/gizmo/main.go @@ -1,7 +1,7 @@ package main import ( - "fmt" + "image/color" "github.com/AllenDang/cimgui-go/imguizmo" "github.com/AllenDang/giu" @@ -38,20 +38,15 @@ var ( func gizmos() []giu.GizmoI { return []giu.GizmoI{ giu.Grid(), - giu.Cube(cube), //.Manipulate(), - giu.Manipulate(cube), - giu.Custom(func() { - fmt.Println(cube) - /* - imguizmo.ViewManipulateFloat( - view.Matrix(), - 1, - imgui.Vec2{128, 128}, - imgui.Vec2{128, 128}, - 0x01010101, - ) - */ - }), + giu.Cube(cube).Manipulate(), + giu.ViewManipulate().Color( + color.RGBA{ + R: 45, + G: 15, + B: 121, + A: 255, + }, + ), } }