Color modulation


#1

Hello. I am rather new to SDL. I am wondering if its possible to achieve color modulation of texture with X:Y distribution.
Pseudo example:

finalColor = (textureColor * 0.5) + (modulationColor * 0.5)

This should mix texture color with modulation color with 50:50 distribution. Any way to color modulate besides SDL_SetTextureColorMod?


#2

https://wiki.libsdl.org/SDL_ComposeCustomBlendMode

but this api not work for all type of rendering