summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
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 /sdl2/bindings.scm
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 'sdl2/bindings.scm')
-rw-r--r--sdl2/bindings.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm
index aea12c9..373f3aa 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -306,6 +306,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign sdl-destroy-texture
void "SDL_DestroyTexture" '(*))
+(define-foreign sdl-query-texture
+ int "SDL_QueryTexture" '(* * * * *))
+
(define-foreign sdl-set-texture-color-mod
int "SDL_SetTextureColorMod" (list '* uint8 uint8 uint8))