summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sly/sprite.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sly/sprite.scm b/sly/sprite.scm
index 064ec66..ef35d2e 100644
--- a/sly/sprite.scm
+++ b/sly/sprite.scm
@@ -45,6 +45,9 @@
;;;
(define* (make-sprite texture #:optional #:key (shader (load-default-shader)))
+ "Return a 2D rectangular mesh that displays the image TEXTURE. The
+size of the mesh is the size of TEXTURE, in pixels. Optionally, a
+custom SHADER can be specified."
(let* ((half-width (half (texture-width texture)))
(half-height (half (texture-height texture)))
(s1 (texture-s1 texture))