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

One window for each patch? #97

Open
Jonathhhan opened this issue May 15, 2024 · 3 comments
Open

One window for each patch? #97

Jonathhhan opened this issue May 15, 2024 · 3 comments

Comments

@Jonathhhan
Copy link
Collaborator

I wonder, if it is possible to have one window for each patch. Currently they are merged into one window (one window for one Pure Data instance).

@cuinjune
Copy link
Owner

If OF can create multiple windows, then it's probably possible, although I'm not sure how performant that would be. You would also need to track the drawings for each patch so that Ofelia objects on a patch only draw to the corresponding window. I'm not sure how this can be done, and I'm also not sure whether there's a good use case for this feature.

@Jonathhhan
Copy link
Collaborator Author

Jonathhhan commented May 16, 2024

I see. The use case would be, that I can open several different patches and they do not distract each other. Also, if I close one of those patches now, the window for both gets closed. Of course performance would be an issue, but if it is not much more than openening several OF apps, it could be worth it.

@Jonathhhan
Copy link
Collaborator Author

Jonathhhan commented May 16, 2024

With the ImGui windows it does actually work, if I give them an individual name with $0 (but still all windows are closed, if I close one patch).

Edit: That is partly solved (for the ImGui windows) by making the Ofelia window local.
Partly, because if I close the first window the second gets also closed, but if I close the second the first stays open.
Here the patch, if you want to take a look: https://github.com/Jonathhhan/ofxOfeliaExtended/blob/main/ofeliaExtendedLib/examples/ofxOfeliaExtendedExamples/ofxStableDiffusionExample/data/ofxStableDiffusion.lua

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

2 participants