Skip to content

Mutating Functions

Torin edited this page Jan 29, 2023 · 1 revision

Some specific wrappers in ImGui_GM will directly mutate arguments (arrays, structs) which is sort of non-standard for GameMaker. Below is a list of each function and how they work.

  • ImGui.ColorEdit4, ImGui.ColorPicker4 takes a struct for the col argument and returns if the struct was changed. ImColor is a helper class provided to simplify conversions to BGR and reading the alpha.
  • All multi-value slider/drag widgets (ImGui.DragInt2, ImGui.DragFloat3, ImGui.DragIntN, etc) take an array for the v argument and return if there were any changes. Single drag widgets do not modify the argument and just return the changed value.
Clone this wiki locally