apicici / cimgui-love

LÖVE module for Dear ImGui obtained by wrapping cimgui with LuaJIT FFI.
MIT License
76 stars 6 forks source link

DockBuilder methods not available #17

Closed oliviadetrick closed 1 year ago

oliviadetrick commented 1 year ago

As the title says, none of the DockBuilder* methods are available to use. The referenced cimgui.h for the generator has them stripped out. Can these be added back in? I tried building the files myself with the official cimgui.h (with FILE stuff stripped out) and it's not working. Were these removed for a reason?

apicici commented 1 year ago

I'm not familiar with the DockBuilder methods but it seems they are part of the internal API, which I'm not wrapping. I'm not planning on adding since I don't really use it, but I just tried to build cimgui with the internal API and it works (well, I haven't tried actually using any of the internal methods, but everything compiles and the LÖVE test file works).

What errors are you encountering? Is it related to the FILE stuff? I had to add this line at the beginning of cdef.lua for things to work:

typedef struct FILE FILE;
oliviadetrick commented 1 year ago

Maybe I'm doing something wrong but when I try to use any of the additional methods I get an error: "The specified procedure could not be found"

Adding the FILE typedef did fix the FILE errors

apicici commented 1 year ago

Could you give me some examples of the things you are trying to do, so I can test them as well?