diff options
author | Eero Leno <eero@leno.fi> | 2018-08-21 15:20:08 +0300 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-08-21 09:16:41 -0400 |
commit | 5a6ea82c9ad859972c01d2908b2f66fb3addcfbb (patch) | |
tree | fda5249cb52947ad9cd81221f2a486e86d1b9e27 /sdl2/render.scm | |
parent | 726cc474fde01723fd500e9820e67b04cb7fb3a4 (diff) |
Add binding for SDL_SetRenderDrawColor.
* sdl2/bindings.scm (sdl-set-render-draw-color): New procedure.
* sdl2/render.scm (set-render-draw-color): New procedure.
Diffstat (limited to 'sdl2/render.scm')
-rw-r--r-- | sdl2/render.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sdl2/render.scm b/sdl2/render.scm index 44df4a4..e2fb05c 100644 --- a/sdl2/render.scm +++ b/sdl2/render.scm @@ -36,6 +36,7 @@ clear-renderer present-renderer render-copy + set-render-draw-color surface->texture)) @@ -101,6 +102,10 @@ color." "Display RENDERER." (ffi:sdl-render-present (unwrap-renderer renderer))) +(define (set-render-draw-color renderer r g b a) + "Set draw color of RENDERER." + (ffi:sdl-set-render-draw-color (unwrap-renderer renderer) r g b a)) + ;;; ;;; Texture |