diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-01-17 14:20:14 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-01-17 14:20:14 -0500 |
commit | 5896bde48b8462e935b4c0c7c51c21eb524b1913 (patch) | |
tree | abd0384b2b172f3a26edb173023d6b89deedc187 /data/shaders | |
parent | eb990ed509b080fd9ccc2edbb8c9cdf629112784 (diff) |
render: texture: Keep a rect for use with draw-sprite and friends.
Easier to calculate it once and hang onto it than to generate it each
time draw-sprite is called.
* chickadee/render/texture.scm (<texture>)[rect]: Delete field.
[x y width height gl-tex-rect]: New fields.
* chickadee/render/sprite.scm (draw-sprite*, draw-sprite,
draw-nine-patch*): Use proper accessors for texture rects.
Diffstat (limited to 'data/shaders')
0 files changed, 0 insertions, 0 deletions