Skip to content

v1.4.0

Latest

Choose a tag to compare

@gucio321 gucio321 released this 24 Sep 10:19
· 70 commits to main since this release
32db904

Introduction

Hi there!
This is quite a big release. It comes with imgui v1.92.3 🎉 as well as imgui impl wrapper (making it possible to implement more backends on go side).

Breaking changes

Some time ago, Dear ImGui came up with a big release - v1.92.0. This release contains several refactors such as:

  • Fonts rework
  • New TextureRef mechanism

This unfortunately caused several breaking changes in our project:

  • The following obsolate, manually-wrapped functions have been removed:
    • TextureDataAsAlpha8
    • GetTextureDataAsRGBA32
  • backend.Texture type was updated to use newly added imgui.TextureRef as its ID value.

Tip

  • imgui.NewTextureRefTextureID is a function that could be used to convert imgui.TextureID to imgui.TextureRef.
  • ref.TexID() returns imgui.TextureID.

Regular changes recap

  • Added Go wrappers for imgui_impl_XXX files.
    • they are extremely useful when creating custom backends, e.g. it should be possible now to create a backend using go-gl/glfw (not tested yet)
    • At the moment, the following impl wrappers are available:
      • glfw (imgui_impl_glfw.h)
      • opengl3 (imgui_impl_opengl3.h)
      • sdl2 (imgui_impl_sdl2.h)
    • read more in a dedicated readme file: https://github.com/AllenDang/cimgui-go/tree/main/impl
  • some missing ebitenbackend features have been implemented
  • utils: there is a new helper method called PtrToSlice. Feel free to use it whenever you see fit :sile:.

What's Changed - detailed changelog (by PR)

New Contributors

Full Changelog: v1.3.1...v1.4.0