Skip to content

Add clipped sprite rotation #621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented Jul 19, 2025

Adds gfx_RotatedScaledSprite and gfx_RotatedScaledTransparentSprite along with a demo under toolchain/examples/library_examples/sprites_rotate_clipped:

image

These functions return the size of the sprite before clipping is performed.

The performance of the clipped routines is identical to the unclipped routines apart from a small constant overhead to calculate the clipped region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant