From 80dd0c8e510f57774e4ec4c2246108259bb26b4d Mon Sep 17 00:00:00 2001 From: Leo Prikler Date: Tue, 15 Dec 2020 00:06:05 +0100 Subject: 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. --- doc/api.texi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3