mgradwohl / mgradwohl/ModernLife
Refactor the sprite sheet into its own class
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Make sure that each rectangle has no interior padding (no padding gets copied when it's drawn to the front buffer) but there is external padding in the background color. And use https://microsoft.github.io/Win2D/WinUI3/html/T_Microsoft_Graphics_Canvas_CanvasSpriteOptions.htm CanvasSpriteOptions::ClampToSourceRect so that no stray pixels are copied.
Contributor guide
No contributing guide indexed for this repository
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 current sprite-sheet implementation in the C++/WinUI 3 code and read the linked CanvasSpriteOptions documentation, focusing on ClampToSourceRect. Refactor that implementation into its own class, then verify that rectangles have no interior padding, retain external background-colored padding, and do not copy stray pixels to the front buffer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, desktop
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100