summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
diff options
context:
space:
mode:
authorLeo Prikler <leo.prikler@student.tugraz.at>2021-06-14 18:35:33 +0200
committerDavid Thompson <dthompson2@worcester.edu>2021-06-15 09:21:24 -0400
commit031605783e630d46b7294d6ac8bfbf5e4884bb82 (patch)
tree5f035448c22dedeec37a0d321165c7cbfdd99b2d /sdl2/bindings.scm
parentac42781f672a855ea6f1553b071055409501f2b0 (diff)
Add support for texture blend modes.
* sdl2/bindings.scm (sdl-set-texture-blend-mode): New variable. * sdl2/render.scm (set-texture-blend-mode!): New variable.
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 8d85c63..7f12b45 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -321,6 +321,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign sdl-get-texture-alpha-mod
int "SDL_GetTextureAlphaMod" '(* *))
+(define-foreign sdl-set-texture-blend-mode
+ int "SDL_SetTextureBlendMode" (list '* int))
+
(define-foreign sdl-set-render-draw-blend-mode
int "SDL_SetRenderDrawBlendMode" (list '* int))