love.graphics.rotate supported with new matrices #24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I didn't get around to this until about half an hour ago, but it was really easy. I'd already been looking at rotation support with a suspicious eye ever since the font stuff, so most of the research as to what would be necessary? Already done, I just had to pull up a bit of refresher material to copy from.
I added the clouds_rotate demo to show this off and prove that it works. This is a straight copy of the clouds demo, except that I've altered the nekochan:render function to use the transformation stack, rotation and translation to slowly spin Nekochan around its center.
This pull request should be pretty easy to backport to the mainline lua-parser.js. It doesn't include support for rotated fonts yet, I think that belongs in a separate issue (unless you want to hold out for that, but it would be a lot harder to backport cleanly due to the churn between the weblua branch and mainline in love.font.js).