summaryrefslogtreecommitdiff
path: root/sdl2/bindings.scm
diff options
context:
space:
mode:
Diffstat (limited to 'sdl2/bindings.scm')
-rw-r--r--sdl2/bindings.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/sdl2/bindings.scm b/sdl2/bindings.scm
index ae7f0d0..2ebc2ed 100644
--- a/sdl2/bindings.scm
+++ b/sdl2/bindings.scm
@@ -240,6 +240,19 @@ RETURN-TYPE and accept arguments of ARG-TYPES."
(define-foreign sdl-render-copy-ex
int "SDL_RenderCopyEx" (list '* '* '* '* double '* int))
+(define-public SDL_TEXTUREACCESS_STATIC 0)
+(define-public SDL_TEXTUREACCESS_STREAMING 1)
+(define-public SDL_TEXTUREACCESS_TARGET 2)
+
+(define-foreign sdl-create-texture
+ '* "SDL_CreateTexture" (list '* uint32 int int int))
+
+(define-foreign sdl-set-render-target
+ int "SDL_SetRenderTarget" '(* *))
+
+(define-foreign sdl-get-render-target
+ '* "SDL_GetRenderTarget" '(*))
+
(define-foreign sdl-create-texture-from-surface
'* "SDL_CreateTextureFromSurface" '(* *))