Jump to content
  • Advertisement


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


Bliting alpha surfaces in DirectDraw

This topic is 5458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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.


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!