From 8a11b291ec148441efacc96a2f9f187e4098af20 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 5 Dec 2020 15:08:52 -0500 Subject: render: Allow for rendering points with minimal allocation. --- doc/api.texi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/api.texi b/doc/api.texi index ee26d9b..de24b07 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1155,7 +1155,9 @@ current rendering target of @var{renderer}. @deffn {Procedure} render-draw-lines renderer points Draw a series of connected lines from @var{points} on the current -rendering target of @var{renderer}. +rendering target of @var{renderer}. Optionally, for best performance, +@var{points} may instead be a bytevector packed with signed 32 bit +integers, 2 per point (x and y). @end deffn @deffn {Procedure} render-draw-point renderer x y @@ -1165,7 +1167,9 @@ of @var{renderer}. @deffn {Procedure} render-draw-points renderer points Draw a multiple points from @var{points} on the current rendering -target of @var{renderer}. +target of @var{renderer}. Optionally, for best performance, +@var{points} may instead be a bytevector packed with signed 32 bit +integers, 2 per point (x and y). @end deffn @deffn {Procedure} render-draw-rect renderer rectangle -- cgit v1.2.3