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

Ability to fetch current frame. #755

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Ability to fetch current frame. #755

wants to merge 2 commits into from

Conversation

Nhlest
Copy link

@Nhlest Nhlest commented Nov 23, 2023

Maybe i am missing something but i could not find a workaround for this without a method that looks something like this.
Example use-case: While using bevy engine's ECS model and storing the imgui Context as a non-sendable resource in ECS's world i am completely unable to construct imgui's UI from different systems since only one scope can own mutable reference to the current frame's Ui. This method allows me to store imgui's context as a resource and retreive current frame on demand.

Also i found set_current_context useful for when i need to call imgui functions from a shared library (something to do with shared libraries having its own static memory for imgui context pointer). Explanation here

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.

None yet

1 participant