Image using negatively scaled sprites are not mirrored

Open Beginner friendly
#320 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
frontend

Research direction

Start with the ImGui::Image sprite overload and compare its behavior with the linked commit 9a737eb03555549245f35177024d69c7b90bbbbd. Check how SFML handles negative sprite scales. Done means an image rendered through this overload is mirrored when its scale is negative.

Written by the indexing model from the issue text.

Description

Hi,

SFML allows mirroring sprites by setting a negative scale. However, this does not appear to be reflected in the current implementation of the ImGui::Image sprite overload. Fixing this is trivial, assuming it is not by design:

https://github.com/ericfournier2/imgui-sfml/commit/9a737eb03555549245f35177024d69c7b90bbbbd

Dominant language
C++
Stars
1.4k
Forks
193
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from SFML/imgui-sfml

All issues in SFML/imgui-sfml

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.