cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
semi transparent - sdl
semi transparent - sdl
Jul 6, 2014 at 1:01am UTC
legendarysnake
(104)
how i render a semi transmarent image using sdl?
i want this effect:
https://www.google.com.br/search?q=rpg+maker+xp+netplay&client=firefox-a&hs=uPS&rls=org.mozilla:pt-BR:official&channel=sb&source=lnms&tbm=isch&sa=X&ei=Zz25U_vWDeimsQTf34CABQ&sqi=2&ved=0CAcQ_AUoAg&biw=1348&bih=604
Last edited on
Jul 6, 2014 at 12:14pm UTC
Jul 6, 2014 at 1:49pm UTC
Peter87
(11178)
You could create an image that have transparency and then load and use it like any other image.
Another way is to set an alpha value on the whole image inside the code.
SDL 1.2
http://sdl.beuc.net/sdl.wiki/SDL_SetAlpha
SDL 2
https://wiki.libsdl.org/SDL_SetSurfaceAlphaMod
https://wiki.libsdl.org/SDL_SetTextureAlphaMod
Topic archived. No new replies allowed.