Skip to content
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

Include of Dear ImGui library in the ImPlot #597

Open
DDeimos opened this issue Nov 1, 2024 · 0 comments
Open

Include of Dear ImGui library in the ImPlot #597

DDeimos opened this issue Nov 1, 2024 · 0 comments

Comments

@DDeimos
Copy link

DDeimos commented Nov 1, 2024

Hello!
There are two includes of Dear ImGui headers:

  1. imgui.h in the implot.h
  2. imgui_internal.h in the implot_internal.h

Both headers are included as it is without extra imgui directory. Usually, libraries expect that they will be included with specific root directory. Here are some libraries, for instance:

  • imgui/imgui.h
  • box2d/box2d.h
  • glm/glm.h

This allows you to setup some lib/thirdparty/extern common directory to work with. You don't have to specify path to each library explicitly. On the other hand, include without root directory forces users to set global access to the imgui directory for each platform and for each project to make it visible for ImPlot. Is there any specific reason why ImPlot expects to see imgui.h locally and not as imgui/imgui.h?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant