summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPierre-Antoine Rouby <contact@parouby.fr>2019-05-22 08:27:55 +0200
committerDavid Thompson <dthompson2@worcester.edu>2019-05-23 09:22:03 -0400
commit3d91eb43ace55bbcce85b5fcfd9dc04ba3dfe236 (patch)
treee1780bb1868407bfc8eb4dea13783d3ded6bd07a /doc
parent13ed39d65ed2637973c64303e8b90c3eac1b550e (diff)
render: Add SDL_RenderDrawLine binding.
* sdl2/bindings.scm (sdl-render-draw-line): New procedure. * sdl2/render.scm (render-draw-line): New procedure. * doc/api.texi: Document it.
Diffstat (limited to 'doc')
-rw-r--r--doc/api.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi
index 5be763c..6e9e945 100644
--- a/doc/api.texi
+++ b/doc/api.texi
@@ -1056,6 +1056,11 @@ Display @var{renderer}.
Copy @var{texture} to the rendering target of @var{renderer}.
@end deffn
+@deffn {Procedure} render-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}.
+@end deffn
+
@deffn {Procedure} surface->texture renderer surface
Convert @var{surface} to a texture suitable for @var{renderer}.
@end deffn