diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-06-04 20:16:08 +0200 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2019-06-04 15:45:46 -0400 |
commit | 895180d78f951d92b7888f134da426ad606d043d (patch) | |
tree | de29912b7dd0e97ea2ec5af3c46c7577675176b5 /doc | |
parent | 84e59980a606f54ea96bb1932ff9a6474a5aaf45 (diff) |
render: Add SDL_RenderDrawRect and SDL_RenderFillRect bindings.
* sdl2/bindings.scm (sdl-render-draw-rect, sdl-render-draw-rects,
sdl-render-fill-rect, sdl-render-fill-rects): New procedures.
* sdl2/render.scm (render-draw-rect, render-draw-rects,
render-fill-rect, render-fill-rects): New procedures.
* doc/api.texi: Document new procedures.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api.texi | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi index e222c11..44d6506 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1082,6 +1082,23 @@ Draw a multiple points from @var{points} on the current rendering target of @var{renderer}. @end deffn +@deffn {Procedure} render-draw-rect renderer rectangle +Draw the outline of @var{rectangle} onto renderer. +@end deffn + +@deffn {Procedure} render-draw-rects renderer rectangles +Draw the outline of the list @var{rectangles} onto @var{renderer}. +@end deffn + +@deffn {Procedure} render-fill-rect renderer rectangle +Fill @var{rectangle} onto @var{renderer}. +@end deffn + +@deffn {Procedure} render-fill-rects renderer rectangles +Fill the list @var{rectangles} onto @var{renderer}. +@end deffn + + @deffn {Procedure} surface->texture renderer surface Convert @var{surface} to a texture suitable for @var{renderer}. @end deffn |