Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Oct 29, 2024
1 parent f45cf38 commit 9af76db
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions examples/gizmo/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

import (
"fmt"

"github.com/AllenDang/cimgui-go/imguizmo"
"github.com/AllenDang/giu"
)
Expand Down Expand Up @@ -36,21 +38,10 @@ var (
func gizmos() []giu.GizmoI {
return []giu.GizmoI{
giu.Grid(),
giu.Cube(cube),
giu.Cube(cube), //.Manipulate(),

Check failure on line 41 in examples/gizmo/main.go

View workflow job for this annotation

GitHub Actions / Lint

commentFormatting: put a space between `//` and comment text (gocritic)
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)
/*

Check failure on line 45 in examples/gizmo/main.go

View workflow job for this annotation

GitHub Actions / Lint

commentedOutCode: may want to remove commented-out code (gocritic)
imguizmo.ViewManipulateFloat(
view.Matrix(),
Expand All @@ -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()...,
),
)
}
Expand Down

0 comments on commit 9af76db

Please sign in to comment.