Skip to content

Commit

Permalink
examples/gizmo: update exmple
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Oct 29, 2024
1 parent cfb8ed7 commit b0a2a50
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions examples/gizmo/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"fmt"
"image/color"

"github.com/AllenDang/cimgui-go/imguizmo"
"github.com/AllenDang/giu"
Expand Down Expand Up @@ -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,
},
),
}
}

Expand Down

0 comments on commit b0a2a50

Please sign in to comment.