r = sdl.SetTextureAlphaMod(tex, alpha)
srcA = srcA * (alpha / 255) |
Note that alpha modulation is not always supported by the renderer; it will return -1 if alpha modulation is not supported.
The tex
argument must simply be the identifier of a hardware brush.