Open vlmillet opened 1 year ago
struct EditorContext;
was ment to be opaque handle to editor. Like FILE
in stdio.
It is possible to pull EditorContext
out of Details
namespace internally. What I do not wish to do is to put implementation details in public header.
Do you need access to implementation details?
Maybe there is a way to better articulate for your compiler that it treat this declaration as opaque handle?
in imgui_node_editor.h,
struct EditorContext
is forward declared inax::NodeEditor
namespace, while it is defined inax::NodeEditor::Detail
. It seems to be wanted as thereinterpret_cast
tells inCreateEditor
, but it provokes unknown symbol dependency reflection while using your library with my reflection meta compiler. Is there a strong reason why it is like this ? I suggest inimgui_node_editor.h
something like this to avoid compiler misleading :instead of
struct EditorContext;