MarioGK / ImGuiSharp

ImGuiSharp is a binding library for ImGui for C#
MIT License
20 stars 2 forks source link

CodeGenerator Generates A Pointer (ImGuiDockNode*) Inside `RangeAccessor<>`, Causing The Build To Fail #1

Open CuriousTommy opened 2 years ago

CuriousTommy commented 2 years ago

How to reproduce:

  1. Recursively clone ImGuiSharp as usual.
  2. Go to the cimgui submodule and change the branch to docking_inter
  3. Copy over the .json files from [cimgui submodule]/generator/output/ to src/CodeGenerator/defs/cimgui
  4. Run CodeGenerator program
  5. Try to build project.

Expected:

public RangeAccessor<ImGuiDockNode> ChildNodes => new RangeAccessor<ImGuiDockNode>(&NativePtr->ChildNodes_0, 2);

Actual:

public RangeAccessor<ImGuiDockNode*> ChildNodes => new RangeAccessor<ImGuiDockNode*>(&NativePtr->ChildNodes_0, 2);
MarioGK commented 2 years ago

Hi, thanks for the interest in the project, sorry for the delay, but i just recuperated from Dengue, CodeGenerator project will be deleted and be replaced by ImGuiSharp.Generator project, basically i am rewriting everything to be easier to modify and update

CuriousTommy commented 2 years ago

i just recuperated from Dengue,

Yikes! I hope you are feeling much better now.

CodeGenerator project will be deleted and be replaced by ImGuiSharp.Generator project, basically i am rewriting everything to be easier to modify and update

Thanks for the heads up, I'll keep that mind.

MarioGK commented 2 years ago

Hello, i just reworked the whole project i am using CppSharp now to generate the bindings, they are really low level atm but everything seems to works just fine for now, i will be working on Tests and Examples now using Silk.net and opengl