From 2950dfa6e1d140a90ad19e1f1c0b6f737f3efe7f Mon Sep 17 00:00:00 2001 From: David Thompson Date: Tue, 17 Oct 2017 21:44:31 -0400 Subject: 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. --- doc/api.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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 -- cgit v1.2.3