Hello defolders
So right now Iam going to focus on my dreamy project and I would like to use defold.
The thing is that this “sandbox half game half editor” will be UI heavy. I’ve already worked with Nuklear and Dear ImGUI and both systems were acceptable, clean and very powerful. I’ve found that some attempts were made in past but guessing that was rather test than production ready solution.
Is it possible to use Dear ImGui or Nuklear as GUI in Defold as native extension and make it “production” ready without any potential “unsolvable core” problems?
PS: Everytime I come back to defold Iam having very good time. Glad to see Defold is nicely progressing! Great job
Thank you for hard work. I use your pull and compile it on windows 10, errors still exist:
/imgui/src/def-imgui.cpp
Line 10: In file included from upload/imgui/src/def-imgui.cpp:10:
unknown type name ‘WINGDIAPI’
WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
^
This is not the same error. It is related to windows build. I don’t have much time right now but I’m going to try to update the imgui.
I would like to let you know; def-imgui is not a complete imgui binding. It is just a demo. You can’t get callbacks from windows to lua. And you have to create your GUI by using c++. So if you are planning to use it on lua, you have to add bindings.
#if defined(_WIN32) && !defined(WINGDIAPI)
#define WINGDIAPI __declspec(dllimport) // Some Windows OpenGL headers need this
#endif
But there were a other problem. It couldn’t find #include <gl/GL.h> on Windows and Linux. Unfortunately I don’t have time right now to look at it, sorry.