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

Discuss design for ImGui wrappers #15

Open
karnkaul opened this issue Oct 20, 2022 · 1 comment
Open

Discuss design for ImGui wrappers #15

karnkaul opened this issue Oct 20, 2022 · 1 comment
Labels
imgui Involves using Dear ImGui

Comments

@karnkaul
Copy link
Member

RAII, std::*, etc.

@karnkaul karnkaul added the imgui Involves using Dear ImGui label Oct 20, 2022
@karnkaul
Copy link
Member Author

karnkaul commented Oct 27, 2022

The approach used so far has these characteristics:

  • RAII wrappers are (ideally) transient - should not need to store any state across frames, intended to be used in a single scope
  • Dependencies are modelled via constructor arguments; eg NotClosed<Window> if an open window is required
  • Users control as much of sizing / positioning as possible

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

No branches or pull requests

1 participant