diff options
author | Pierre-Antoine Rouby <contact@parouby.fr> | 2019-05-22 08:27:55 +0200 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2019-05-23 09:22:03 -0400 |
commit | 3d91eb43ace55bbcce85b5fcfd9dc04ba3dfe236 (patch) | |
tree | e1780bb1868407bfc8eb4dea13783d3ded6bd07a /sdl2/bindings.scm | |
parent | 13ed39d65ed2637973c64303e8b90c3eac1b550e (diff) |
render: Add SDL_RenderDrawLine binding.
* sdl2/bindings.scm (sdl-render-draw-line): New procedure.
* sdl2/render.scm (render-draw-line): New procedure.
* doc/api.texi: Document it.
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r-- | sdl2/bindings.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm index 854bdc9..c31bbd2 100644 --- a/sdl2/bindings.scm +++ b/sdl2/bindings.scm @@ -245,6 +245,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES." (define-foreign sdl-set-render-draw-color int "SDL_SetRenderDrawColor" (list '* uint8 uint8 uint8 uint8)) +(define-foreign sdl-render-draw-line + int "SDL_RenderDrawLine" (list '* int int int int)) + ;;; ;;; Events |