diff options
Diffstat (limited to 'sdl2/render.scm')
-rw-r--r-- | sdl2/render.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sdl2/render.scm b/sdl2/render.scm index e12fad1..5c3b9b0 100644 --- a/sdl2/render.scm +++ b/sdl2/render.scm @@ -403,6 +403,12 @@ TEXTURE." (bytevector-uint-ref bv (* 2 (sizeof int)) (native-endianness) (sizeof int)) (bytevector-uint-ref bv (* 3 (sizeof int)) (native-endianness) (sizeof int))))) +(define (set-texture-blend-mode! texture blend-mode) + (unless (zero? (ffi:sdl-set-texture-blend-mode + (unwrap-texture texture) + ((@@ (sdl2 blend-mode) blend-mode-bitmask) blend-mode))) + (sdl-error "set-texure-blend-mode!" "Failed to set texture blend mode"))) + (define (set-texture-color-mod! texture r g b) "Get color mod of TEXTURE as a list of the integers." (unless (zero? (ffi:sdl-set-texture-color-mod (unwrap-texture texture) r g b)) |