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

Set include dirs to be SYSTEM to prevent user-enabled warnings in header #16

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

lilggamegenius
Copy link
Contributor

Currently, the header directories are included normally, which can allow warnings to show up depending on the user's current settings.
This PR changes the public includes to be system so no warnings are triggered and adds a copy of the includes privately so building the library itself still shows the proper warnings.
Also changes glfw's include path to only be added if the variable exists, preventing user's project from including from /include.

Currently, the header directories are included normally, which can allow warnings to show up depending on the user's current settings.
Changes the public includes to be system so no warnings are triggered.
Adds a copy of the includes privately so building the library itself still shows the proper warnings.
Also changes glfw's include path to only be added if the variable exists, preventing user's project from including from /include.

Signed-off-by: Gabe Gonzalez II <lilggamegenius@gmail.com>
Signed-off-by: Gabe Gonzalez II <lilggamegenius@gmail.com>
Commented out some deprecated flags.
Wrap child frame around obsolete macro.
Update Child border argument to match new argument.
Added new arg with default to Tooltip, allows for passing a bool to enable the tooltip. Defaults to true for compatibility.

Signed-off-by: Gabe Gonzalez II <lilggamegenius@gmail.com>
Signed-off-by: Gabe Gonzalez II <lilggamegenius@gmail.com>
@lilggamegenius
Copy link
Contributor Author

I kinda forgot I made this so the last 3 commits weren't intended for this PR, although I do think they would make good additions.
The 2nd commit adds an optional init function parameter which takes a lambda that allows for the user to do initialization work after ImGui is initialized, but before the main function loop. I'm using it to add a ini handler and to control style configs that need to be called when a frame isn't rendering.
3rd commit is to fix compatibility in new ImGui versions when disabling obsolete symbols.
4th is just updating the actual submodules.

Add recommended defaults for ItemTooltip.
Copy link
Owner

@kfsone kfsone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@kfsone kfsone merged commit 265f13b into kfsone:main Apr 23, 2024
4 checks passed
@lilggamegenius lilggamegenius deleted the fixed-includes branch April 23, 2024 08:44
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

Successfully merging this pull request may close these issues.

2 participants