Texture fading animation |
luca00555
|
Here is the real deal I'll be working with:
|
|||||||||||
|
MrTAToad
|
I believe you would need to convert to a surface (or have a surface as well as a texture) in order to manipulate the data (texture data is write-only) - this would mean the standard SDL pixel reading system can be used : Read in a pixel as usual; convert to RGBA; subtract the appropriate alpha value and then write back.
You would probably need to destroy and re-create the texture on each change, but that should be okay. |
|||||||||||
|
Alex
|
I not sure can it help you, but I suggest to create vertical alpha gradient (another image with only alpha values and zeros in other channels) and combine this two images. Try to test it may be you get acceptable result.
|
|||||||||||
|
luca00555
|
Thanks, I'll try both and see what I can make of it.
|
|||||||||||
|