v1.1.0
Introduction
Hi!
We present another release of cimgui-go today.
Its major highlights are:
- implementation of the ImGuizmo extension
- Imgui update
- bugfix in glfwbackend causing GL error in some circumstances.
- fix of crucial issues in the internal conversions mechanism
- package layout redesign (BREAKING CHANGE)
- change of type for all in/out slices to pointers (BREAKING CHANGE)
- improvement of
Vector
type - it now shares the Slice() method.
Breaking Changes
- if you use a slice as an argument to cimgui-go function, replace it with
utils.SliceToPtr(yourslice)
- this was necessary, because we cannot in fact determine whether a C pointer is a Slice or Pointer. Conversion from slice to pointer is easier and makes more sense than conversion from ptr to slice.
- There was an issue making it impossible to pass an empty slice or nil (runtime panic)
- ConvertCTypes and some Wrap* functions have been hidden.
- you shouldn't have to use these functions - its use should be handled internally by cimgui-go. They are highly unsafe.
imgui.Vector
was moved tovectors.Vector
- Vector type does not belong to the
imgui
package so putting it there isn't the right approach.
- Vector type does not belong to the
imgui.SliceToPtr
was moved toutils.SliceToPtr
- As above: this function does not belong to
imgui
's code and should not be there.
- As above: this function does not belong to
datautils
package was renamed toutils
.Does it make it work better?
- No, but this name is shorter. This package was entirely redesigned anyway so a name change will not break much more.
We are so sorry for these breaking changes. We hope their positive impact on your project will be much greater than your dissatisfaction related to implementing them. We promise we'll try to avoid them in future releases so that you can update smoothly.
What's Changed
- Update imgui to 646df390032f64eb03f8b5e2e5cbaf0c8e3bb237 by @gucio321 in #355
- hotfix(glfwbackend): revert part of #348 by @gucio321 in #356
- add ImGuizmo plugin by @gucio321 in #297
- hotfix(datautils): WrapNumberPtr now works as expected by @gucio321 in #357
- codegen: get rid of simplePtrSliceW by @gucio321 in #358
- examples: add gizmo usage example by @gucio321 in #359
- build(deps): bump github.com/hajimehoshi/ebiten/v2 from 2.8.1 to 2.8.2 by @dependabot in #360
- Reorder pkg by @gucio321 in #361
- Add imguizmo comments by @gucio321 in #362
- Vectors rework by @gucio321 in #363
Full Changelog: v1.0.3...v1.1.0