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

expose draw list user callback #14

Open
shakesoda opened this issue Jul 17, 2017 · 0 comments
Open

expose draw list user callback #14

shakesoda opened this issue Jul 17, 2017 · 0 comments

Comments

@shakesoda
Copy link
Contributor

I've got a bunch of custom views, but without a way to set callbacks on the draw lists I have to draw them to a canvas and draw them as images... it's awkward and a lot slower than just being able to give it a draw function.

image

^ this involves a ton of canvases, but most of them wouldn't be needed if I had a render callback (I'd just need the one for shaded view)

short of fully exposing ImDrawList, something like imgui.AddCallback(fn) which just gets the window draw list and adds the callback (i.e. GetWindowDrawList()->AddCallback(...)) would be wonderful

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

No branches or pull requests

1 participant