summaryrefslogtreecommitdiff
path: root/doc/api.texi
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2017-10-17 21:44:31 -0400
committerDavid Thompson <dthompson2@worcester.edu>2017-10-17 21:51:25 -0400
commit2950dfa6e1d140a90ad19e1f1c0b6f737f3efe7f (patch)
tree0e56be915f43e605dfec45d034d7925f0612ba4e /doc/api.texi
parent31b6f11b45d810a2e38e37f2f26ccd979166f356 (diff)
render: sprite: Add support for drawing texture regions.
* chickadee/render/sprite.scm (%default-texture-region): Rename to... (%default-texcoords): ...this. (draw-sprite): Replace #:texture-region arg with #:texcoords. Add support for texture regions. Update docstring. (draw-nine-patch): Add support for texture regions. * chickadee/render/font.scm (draw-text): Change #:texture-region to #:texcoords in draw-sprite call.
Diffstat (limited to 'doc/api.texi')
-rw-r--r--doc/api.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 1f69059..022c103 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -682,7 +682,7 @@ stored in textures (@pxref{Textures}) and can be used to draw sprites
via the @code{draw-sprite} procedure.
@deffn {Procedure} draw-sprite @var{texture} @var{region} @
- [#:scale] [#:rotation] [#:blend-mode alpha] [#:texture-region] @
+ [#:scale] [#:rotation] [#:blend-mode alpha] [#:texcoords] @
[#:shader]
@end deffn