summaryrefslogtreecommitdiff
path: root/doc/api.texi
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api.texi')
-rw-r--r--doc/api.texi12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi
index a227cdc..7a49c85 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1848,6 +1848,18 @@ This type of texture atlas layout is very common for 2D tile maps.
@xref{Tile Maps} for more information.
@end deffn
+@deffn {Procedure} load-tileset file-name tile-width tile-height @
+ [#:margin 0] [#:spacing 0] @
+ [#:min-filter nearest] @
+ [#:mag-filter nearest] [#:wrap-s repeat] [#:wrap-t repeat] @
+ [#:transparent-color]
+
+Return a new texture atlas that splits the texture loaded from the
+file @var{file-name} into a grid of @var{tile-width} by
+@var{tile-height} rectangles. See @code{load-image} and
+@code{split-texture} for information about all keyword arguments.
+@end deffn
+
@deffn {Procedure} texture-atlas? obj
Return @code{#t} if @var{obj} is a texture atlas.
@end deffn