chickadee » sdl2 » texture-colour-mod

texture-color-mod textureprocedure
texture-colour-mod textureprocedure
set! (texture-color-mod texture) rgbsetter
set! (texture-colour-mod texture) rgbsetter
texture-color-mod-set! texture rgbsetter
texture-colour-mod-set! texture rgbsetter

See SDL_GetTextureColorMod and SDL_SetTextureColorMod.

texture-color-mod and texture-colour-mod return multiple values.

The setters accept either a list (r g b) of color values, or an sdl2:color (the sdl2:color's "a" field will be ignored).

These procedures signal an exception of kind (exn sdl2) if an error occurs.

Requires sdl2 egg 0.2.0 or higher.