cloudhead / cloudhead/rgx.legacy

Sprite rotation

Open
#16 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
193
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Are there any plans to introduce an ability to rotate sprites added to the sprite batch?

In theory, it should be pretty easily done by introducing something like `RotationRect` as an extension of `Rect`, which will contain additional info about the angle and origin of rotation. Later this `RotationRect` may be used by calling `batch.add_rotated`.
As an alternative, it might be a good solution to go "XNA" way by adding both angle and origin to the direct `batch.add` call.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.