summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLeo Prikler <leo.prikler@student.tugraz.at>2020-12-15 00:06:05 +0100
committerDavid Thompson <dthompson2@worcester.edu>2020-12-15 10:46:41 -0500
commit80dd0c8e510f57774e4ec4c2246108259bb26b4d (patch)
tree5c69d96036be2a314c3ae971ab4a72d7c0c79b25 /doc
parentbbac3c383c6564813e906797ea7cb2b76c0dcdfb (diff)
render: Add SDL_QueryTexture binding.
* sdl2/bindings.scm (sdl-query-texture): New variable. * sdl2/render.scm (query-texture): New variable. * doc/api.texi: Document it here.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi
index f1075b9..ed79da5 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1217,6 +1217,10 @@ requires that renderer was created with the @code{texture} flag.
@end itemize
@end deffn
+@deffn {Procedure} query-texture texture
+Return 4 values for the format, access, width and height of a texture.
+@end deffn
+
@deffn {Procedure} surface->texture renderer surface
Convert @var{surface} to a texture suitable for @var{renderer}.
@end deffn