openframeworks / openframeworks/openFrameworks
Multiple Windows - easier way of drawing in a specific window
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Now it is possible to identify each window as @ofTheo suggested here in this thread
https://forum.openframeworks.cc/t/multiple-windows-how-to-know-which-window-is-being-drawn/40538/3
it would be great to have a simpler way of handling drawing in different windows.
void drawWindow(ofEventArgs & args) {
int index = args.windowIndex;
}

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the drawWindow(ofEventArgs& args) entry point and review the linked forum discussion about identifying multiple windows. Determine the scope of a simpler drawing API and how it should work across the supported window backends. Done means the proposed approach clearly supports drawing in a specific window and has corresponding tests or examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100