diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-06-09 20:48:21 +0200 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2019-06-09 18:15:04 -0400 |
commit | 0e85e89d730b99472454ca9327c228362dbe136d (patch) | |
tree | f29b3664704d72c4bb364dc011c8096d2cd02ac9 /doc | |
parent | a8afc8a54ec96e25767133d6c1e22f53354c8800 (diff) |
render: Add texture color/alpha mod bindings.
* sdl2/bindings.scm (sdl-set-texture-color-mod,
sdl-get-texture-color-mod, sdl-set-texture-alpha-mod,
sdl-get-texture-alpha-mood): New procedures.
* sdl2/render.scm (set-texture-color-mod!, set-texture-alpha-mod!,
get-texture-color-mod, get-texture-alpha-mod): New procedures.
* doc/api.texi: Document new procedures.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/api.texi b/doc/api.texi index 67bb1b2..9184ed3 100644 --- a/doc/api.texi +++ b/doc/api.texi @@ -1130,6 +1130,22 @@ Convert @var{surface} to a texture suitable for @var{renderer}. Free the memory used by @var{texture}. @end deffn +@deffn {Procedure} get-texture-color-mod texture +Get color mod of @var{texture} as a list of the integers. +@end deffn + +@deffn {Procedure} get-texture-alpha-mod texture +Get alpha mod of @var{texture} as a single integer. +@end deffn + +@deffn {Procedure} set-texture-color-mod! texture r g b +Set the color mod of @var{texture}. +@end deffn + +@deffn {Procedure} set-texture-alpha-mod! texture a +Set the alpha mod of @var{texture}. +@end deffn + @node Images @section Images |