You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then added a DLL project with minimal changes, e.g. IntDir, OutDir, PreprocessorDefinitions, ProjectReference, sources
once that builds, I updated dearimgui-build.cmd so it's easier to trigger in VSCode terminal (builds both 32-bit/64-bit native DLLs for managed project)
Then, a managed project is slightly more involved:
after that, it's eventually a lot of rinse and repeat
run dearimgui-build.cmd
see what requires manual fixing with regex (or CppSharp eventually, though I believe we're maxed out on that one)
repeat until build succeeds
Not sure what your environment is, here I had both VSCode and VS + ReSharper so spotting the changes was mostly a matter of waiting for the build and analysis to complete in both.
What is daunting, is the sheer amount of generated code and sometimes to come up with the right regex, there is quite a bit to skim through with the comments and the duplicated for 32-bit and 64-bit imports.
Overall, it's mostly a matter of patience, the fixes aren't too difficult to come up with, if at all as there are already some in the base library.
I put emphasis on regex because the problem is that CppSharp is kinda a bit of black box with no documentation and unfinished in some ways; there are quite a bunch of things that are simply not working fully (e.g. type maps).
Therefore, a good old regex ends up being a good silver bullet as opposed to CppSharp, time-wise and efficiency-wise.
Hey,
Since these bindings are generated through CppSharp, I am guessing it should be easier to generate bindings for 3rd party C++ Widgets,
I was wondering if you could provide some steps/guidance on how to develop these C# bindings, for example for: github/thedmd/imgui-node-editor
The text was updated successfully, but these errors were encountered: