summaryrefslogtreecommitdiff
path: root/chickadee.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-01-17 12:01:41 -0500
committerDavid Thompson <dthompson2@worcester.edu>2018-01-17 12:01:41 -0500
commitfedd9bca3d6397e22e5400e8653879bb77bbff2e (patch)
treeff358caf4fb550408685ce851ed4dd6b885a7c05 /chickadee.scm
parent4912d9bd202115e6a2d2a22d3414310f8ac63ff2 (diff)
render: Refactor sprite rendering.
* chickadee/render/texture.scm (<texture-region>): Delete type. (<texture>)[width, height, gl-size]: Delete fields. [parent, rect, gl-rect]: Add fields. (texture-region?): Rewrite. (make-texture, null-texture): Use new texture constructor. (make-texture-region): Rewrite in terms of <texture> type. (list->texture-atlas, split-texture): Use new texture region constructor. * chickadee/render/sprite.scm (draw-sprite*): New procedure. (draw-sprite): Rewrite in terms of draw-sprite*. (draw-nine-patch*): New procedure. (draw-nine-patch): Rewrite in terms of draw-nine-patch*. * chickadee/render/font.scm (draw-text*): New procedure. (draw-text): Rewrite in terms of draw-text*. * doc/api.texi: Update draw-sprite, draw-nine-patch, and draw-text docs.
Diffstat (limited to 'chickadee.scm')
0 files changed, 0 insertions, 0 deletions