summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
diff options
context:
space:
mode:
authorJona <saikyun@gmail.com>2017-05-05 10:36:07 +0200
committerDavid Thompson <dthompson2@worcester.edu>2017-06-06 21:12:14 -0400
commitecdb209d374e62144defa4b80d6a1c9f46a727d1 (patch)
treea884c7fb8ad66d7d312f10aaf3a6367630493b58 /sdl2/bindings.scm
parent85704a5b67bd1d1d31cd4e6ca04be488c5fe64d8 (diff)
render: Add srcrect and dstrect arguments to render-copy.
* sdl2/bindings.scm (sdl-rect): New variable. * sdl2/render.scm (render-copy): Add srcrect and dstrect arguments.
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 d69e737..dd0a619 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -49,6 +49,9 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-public sdl-color
(list uint8 uint8 uint8 uint8))
+(define-public sdl-rect
+ (list int int int int))
+
(define sdl-bool int)
(define-public (boolean->sdl-bool b)