Jump to content
  • Advertisement
Sign in to follow this  

SDL.NET : Alpha Blending/Composite Sprites

This topic is 3246 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'm attempting to create a GUI Engine in SDL.NET. I have a .png file that holds my GUI skin. The file is saved with a completely blank background (Alpha 0), there's no fill color. I've loaded the texture using new Surface(filename).Convert(_screen,true,true); The screen has alpha blending turned on. When I attempt to grab a portion of the skin texture and blit it to the screen over a background: _Screen.Blit(_skinTexture, destRectangle, sourceRectangle); the blitted texture does not have a transparent background, it shows up as black. I've tried every possible combination of Transparent and AlphaBlending flags on both the screen and the skin texture, and I am still unsuccessful in being able to blit portions of the skin texture that have a blank background to the screen while maintaining those blank portions. Any suggestions?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!