summaryrefslogtreecommitdiff
path: root/sdl2/render.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:37:58 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:37:58 -0500
commited821d76b70a1454285d415dfae7db9394c535f2 (patch)
tree4e45339c90d6787eaac51129c9e1ed2955ca09ce /sdl2/render.scm
parent826890fef892288b9b63c5cb1aed94cd7830e66d (diff)
render: Rename render-target and set-render-target.
Diffstat (limited to 'sdl2/render.scm')
-rw-r--r--sdl2/render.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdl2/render.scm b/sdl2/render.scm
index 6b7a211..732798c 100644
--- a/sdl2/render.scm
+++ b/sdl2/render.scm
@@ -41,12 +41,12 @@
renderer-scale
renderer-integer-scale
renderer-viewport
- render-target
+ renderer-target
set-renderer-logical-size!
set-renderer-scale!
set-renderer-integer-scale!
set-renderer-viewport!
- set-render-target!
+ set-renderer-target!
set-renderer-draw-color!
set-renderer-draw-blend-mode!
@@ -396,7 +396,7 @@ created with 'texture')"
(unless (zero? result)
(sdl-error "render-copy" "failed to copy texture"))))
-(define (set-render-target! renderer texture)
+(define (set-renderer-target! renderer texture)
"Sets the render target for RENDERER to TEXTURE, making all comming draw
requests redirect to TEXTURE.
@@ -409,7 +409,7 @@ Pass #f to reset it to the default target."
(unless (zero? result)
(sdl-error "set-render-target!" "failed to set render target"))))
-(define (render-target renderer)
+(define (renderer-target renderer)
"Returns the current render target of RENDERER. #f if it's a texture."
(let ((ptr (ffi:sdl-get-render-target (unwrap-renderer renderer))))
(if (null-pointer? ptr)