openframeworks / openframeworks/openFrameworks

ofWindowSettings setPosition & setSize (int, int vs glm::vec2)

Open
#7,008 0 comments 0 reactions 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.