HexaEngine / Hexa.NET.ImGui

A .NET wrapper for the Dear ImGui.
Other
58 stars 5 forks source link

Project name repeats in generated items names like: ImPlot.ImPlotGetPlot #15

Open J8-8N opened 3 days ago

J8-8N commented 3 days ago

Hello, thank you for the awesome up-to-date bindings. In ImPlot, files functions.125.cs and functions.126.cs it seems the generator didn't remove the project name from the names of items so a very common method like ImPlot::GetPlot() became ImPlot.ImPlotGetPlot() instead of ImPlot.GetPlot(). And all the other items in those files too. Thank you

JunaMeinhold commented 3 days ago

Thanks for pointing that out. I fixed it right now, you just have to wait until the nuget packages are available.

J8-8N commented 2 days ago

Thank you! In ImPlot functions.124.cs line 1799 I think public static ImDrawList* GetPlotDrawList() should return ImDrawListPtr instead to suit how the Hexa.Net.ImGui does similar GetDrawList methods.

JunaMeinhold commented 2 days ago

Fixed it, i will wait for your reply if there is anything else that catches your eye before releasing it, I don't want to annoy people by very frequent updates. And additionally you can just implicitly cast it to ImDrawListPtr when doing

ImDrawListPtr draw = ImPlot.GetPlotDrawList();