-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better naming and folder structure #80
Comments
I think it's a good idea, this project structure is also followed by SFML, it will be more consistent in the includes. But we can't have full mandatory consistency, ImGui itself have no special structure. Some CMake can add one to also have a subfolder include (e.g. |
Good point, that's a pretty difficult thing to figure out... I can make it so that during install, you'll get this layout (and use
Another possibility (and use
And the worst (and use
What's happening now is this:
|
The problem putting The better is maybe
to control the ImGui version used. |
@ocornut |
I think imgui shouldn't be installed for variety of reason including some highlighted by @pinam45 above. There you have my answer. |
So, I guess ImGui-SFML should install without imgui.h and require users to add it to their build manually? |
In scope of this, I think it'll be good to start producing 'libimgui-sfml.so' and 'libimgui-sfml.a', not 'libImGui-SFML.so' and 'libImGui-SFML.a'. |
Would be good to stop producing .so files :D |
Why? |
Dear ImGui is not ABI forward nor backward compatible. In addition it is a library that typically involve dozen of thousands of function calls every frame, building as DLL is only going to add extra overhead. |
I agree, but it's for the user to decide if they want to build it as DLL or not. |
ImGui-SFML v3 is a great place to make such a breaking change. I'd love to remove some of those capital letters. They look pretty awkward. I support pretty much everything Elias recommended so long as we don't touch the path to imgui.h since we don't own that header. These changes will be no trouble to implement. I'll likely write this up in the near future. |
Right now, there's a bit of inconsistency in naming. The repo is named "imgui-sfml", the files are "imgui-SFML.h" and "imgui-SFML.cpp", the CMake target is "ImGui-SFML"
Plus, the repo doesn't follow good C++ lib project structure. What I propose is this layout:
The CMake target will still be "ImGui-SFML".
In your code, you'll need to do this:
Please share your thoughts in the thread.
The text was updated successfully, but these errors were encountered: