Skip to content

Imgui multi canvas#539

Merged
Korijn merged 7 commits intopygfx:mainfrom
kushalkolar:imgui-multi-canvas
Jul 29, 2024
Merged

Imgui multi canvas#539
Korijn merged 7 commits intopygfx:mainfrom
kushalkolar:imgui-multi-canvas

Conversation

@kushalkolar
Copy link
Copy Markdown
Contributor

@kushalkolar kushalkolar commented Jul 11, 2024

Exposes the context of ImguiRenderer so that it can be used for context switching. As far as I understand, this is required for rendering different UIs to multiple different canvases (added an example). Not sure if there's a better way to do this, welcome to suggestions! @panxinmiao

tested in glfw & qt

@panxinmiao
Copy link
Copy Markdown
Contributor

I didn't consider the situation of multiple ImguiRenderer instances. 😅

LGTM.

Comment thread examples/imgui_multi_canvas.py Outdated
@kushalkolar
Copy link
Copy Markdown
Contributor Author

I didn't consider the situation of multiple ImguiRenderer instances. 😅

No worries, your work on implementing imgui integration has been amazing! 😄

@kushalkolar kushalkolar reopened this Jul 15, 2024
Comment thread examples/imgui_multi_canvas.py Outdated
@Korijn Korijn enabled auto-merge (squash) July 29, 2024 07:00
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.

4 participants