From 9224412274e1e1a31a959083bb257a7d6ab2b113 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 19 Aug 2016 20:40:12 -0400 Subject: Add Sly manual. --- manuals/sly/Sprites.html | 116 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 manuals/sly/Sprites.html (limited to 'manuals/sly/Sprites.html') diff --git a/manuals/sly/Sprites.html b/manuals/sly/Sprites.html new file mode 100644 index 0000000..0ea943d --- /dev/null +++ b/manuals/sly/Sprites.html @@ -0,0 +1,116 @@ + + + + + +Sly: Sprites + + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Rendering   [Contents][Index]

+
+
+ +

4.5.2 Sprites

+ +
+
Scheme Procedure: make-sprite texture [#:anchor]
+

Create a sprite that displays the image in texture. The size of +the mesh is the size of texture in pixels. anchor defines +the origin of the sprite. By default, the anchor is center, +which puts the origin in the middle of the sprite. See +’anchor-texture’ for more anchoring options. +

+ +
+
Scheme Procedure: load-sprite file [#:anchor]
+

Create a sprite from the texture in file whose origin is defined +by anchor. The default anchor is center. +

+ +
+
Scheme Syntax: sprite? obj
+

Return #t if obj is a sprite. +

+ +
+
Scheme Syntax: sprite-texture sprite
+

Return the texture for sprite. +

+ +
+
Scheme Syntax: sprite-mesh mesh
+

Return the mesh for sprite. +

+ +
+
Scheme Procedure: render-sprite sprite
+

Create a renderer for sprite. +

+ + + + + + -- cgit v1.2.3