summaryrefslogtreecommitdiff
path: root/doc/api.texi
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:08:52 -0500
committerDavid Thompson <dthompson2@worcester.edu>2020-12-05 15:08:52 -0500
commit8a11b291ec148441efacc96a2f9f187e4098af20 (patch)
tree467753af72d6e466d2c9a03f7d479d452ab714ba /doc/api.texi
parenta75936cdff67adfd34fc163ab446b87844f1dcfe (diff)
render: Allow for rendering points with minimal allocation.
Diffstat (limited to 'doc/api.texi')
-rw-r--r--doc/api.texi8
1 files changed, 6 insertions, 2 deletions
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