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

[API] Add ImGuiContext #65

Merged
merged 2 commits into from
Jul 13, 2021
Merged

[API] Add ImGuiContext #65

merged 2 commits into from
Jul 13, 2021

Conversation

perrymacmurray
Copy link
Contributor

Following up #17, added ImGuiContext struct, as well as getCurrentContext() and setCurrentContext() methods. Additionally modified createContext() and destroyContext() to allow storing a returned context/destroying a specific context.

ImGuiContext currently just stores a pointer and doesn't support the full API from imgui_internal.h, but is good enough for creating/switching between multiple contexts.

@SpaiR SpaiR added the enhancement New feature or request label Jul 13, 2021
@SpaiR SpaiR merged commit 78694a4 into SpaiR:master Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants