diff options
Diffstat (limited to 'doc/api.texi')
-rw-r--r-- | doc/api.texi | 24 |
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: |