summaryrefslogtreecommitdiff
path: root/doc/api.texi
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 /doc/api.texi
parent826890fef892288b9b63c5cb1aed94cd7830e66d (diff)
render: Rename render-target and set-render-target.
Diffstat (limited to 'doc/api.texi')
-rw-r--r--doc/api.texi24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/api.texi b/doc/api.texi
index c10cd8d..f1075b9 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1148,6 +1148,18 @@ Set blend mode of @var{renderer} to @var{blend-mode}. @xref{Blend
Modes} for more information.
@end deffn
+@deffn {Procedure} set-renderer-target! renderer texture
+Sets the render target for @var{renderer} to @var{texture}, making all
+comming draw requests redirect to @var{texture}.
+
+Pass @code{#f} to reset it to the default target.
+@end deffn
+
+@deffn {Procedure} renderer-target renderer
+Returns the current render target of @var{renderer} or @code{#f} if
+it's a texture.
+@end deffn
+
@deffn {Procedure} draw-line renderer x1 y1 x2 y2
Draw a line from (@var{x1}, @var{y1}) to (@var{x2}, @var{y2}) on the
current rendering target of @var{renderer}.
@@ -1193,18 +1205,6 @@ performance, @var{rects} may instead be a bytevector packed with
signed 32 bit integers, 4 per rect (x, y, width, height).
@end deffn
-@deffn {Procedure} set-render-target! renderer texture
-Sets the render target for @var{renderer} to @var{texture}, making all
-comming draw requests redirect to @var{texture}.
-
-Pass @code{#f} to reset it to the default target.
-@end deffn
-
-@deffn {Procedure} render-target renderer
-Returns the current render target of @var{renderer} or @code{#f} if
-it's a texture.
-@end deffn
-
@deffn {Procedure} make-texture renderer format access width height
Returns a new texture for @var{renderer} with pixel @var{format}.
@var{access} is one of the symbols: