From 697a403617b97b4ce333132dae89cb009f6b6e3b Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 6 Jul 2022 20:25:30 +0200 Subject: Add SDL_UpdateTexture binding. --- doc/api.texi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/api.texi b/doc/api.texi index 204db9e..8e0fe73 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1242,6 +1242,14 @@ Convert @var{surface} to a texture suitable for @var{renderer}. Free the memory used by @var{texture}. @end deffn +@deffn {Procedure} update-texture texture rect pixels pitch +Update the subsection of @var{texture} defined by @var{rect} with new +pixel data in the @var{pixels} bytevector. @var{pitch} represents the +number of bytes in a row of pixel data, including any padding between +rows. This is a fairly slow process: Better to use the lock/unlock +mechanism in streaming textures. +@end deffn + @deffn {Procedure} texture-color-mod texture Get color mod of @var{texture} as a list of the integers. @end deffn -- cgit v1.2.3