summaryrefslogtreecommitdiff
path: root/chickadee.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-01-05 15:56:26 -0500
committerDavid Thompson <dthompson2@worcester.edu>2018-01-05 15:56:26 -0500
commitcf1b09a12f39767c1cdf2b9cee81c396dc8b52cd (patch)
tree88187c4ac8e2c2f9e1473e455939a204e9ae7753 /chickadee.scm
parent41681454c4a1b0a12605f512a52f8fc46afefff1 (diff)
render: sprite: Allow passing custom transformation matrices.
* chickadee/render/sprite.scm (draw-sprite-unbatched, draw-sprite-batched): Replace 'scale' and 'rotation' arguments with a 'matrix' argument. (sprite-batch-add!): Ditto. Also, correctly transform sprite vertices. This was previously not handling rotations properly. (%default-offset): New variable. (draw-sprite, draw-nine-patch): Change default values for 'rotation' and 'scale'. Add 'matrix' and 'offset' arguments. * chickadee/render/font.scm (%default-offset): New variable. (draw-text): Change default values for 'rotation' and 'scale'. Add 'offset' and 'matrix' arguments.
Diffstat (limited to 'chickadee.scm')
0 files changed, 0 insertions, 0 deletions