openframeworks / openframeworks/openFrameworks
ofWindowSettings setPosition & setSize (int, int vs glm::vec2)
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I think it is confusing to use
void setSize(int width, int height)
and
void setPosition(const glm::vec2 & position)
do you think OF should accept glm::vec2 for size too? (dimensions)
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 by locating the ofWindowSettings declarations and implementations, then compare the existing setSize and setPosition signatures and their call sites. Review the surrounding window API before deciding whether the proposed glm::vec2 size form is appropriate. Done means the API decision is settled and all affected declarations and usages consistently reflect it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100