diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-07-06 20:25:30 +0200 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2022-07-06 15:51:36 -0400 |
commit | 697a403617b97b4ce333132dae89cb009f6b6e3b (patch) | |
tree | 44708086f19b7ebf8e07e328c0b5348a80b277d9 /doc/api.texi | |
parent | 3f5fc49d9885ea88a4271d2d074e3e6192bce1ef (diff) |
Add SDL_UpdateTexture binding.
Diffstat (limited to 'doc/api.texi')
-rw-r--r-- | doc/api.texi | 8 |
1 files changed, 8 insertions, 0 deletions
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 |