Archived

This topic is now archived and is closed to further replies.

cpprulz

Bliting alpha surfaces in DirectDraw

Recommended Posts

I want to blit a surface that has a transparent effect on the surface being blit to, but I really don''t know where to start. I tried using the alpha channels, but I''m really confused. Thanks.

Share this post


Link to post
Share on other sites
DirectDraw doesn''t support hardware alpha blending (semi-transparent) so any type of alpha blending you wish to do would have to be software. There are a few articles here on Gamedev that can get you started if you want to write your own alpha blending routines. However, if you only have 1 color that you want to be transparent you can use color keys. I haven''t worked with a range of color key values, but I hear it is possible in DirectDraw to have a range of colors be transparent. Most people will tell you to move to d3d or OpenGL to get the benefits of hardware alpha blending.


Evillive2
E-Mail

Share this post


Link to post
Share on other sites