openframeworks / openframeworks/openFrameworks

Multiple Windows - easier way of drawing in a specific window

Open
#7,146 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.