Jump to content
  • Advertisement
Sign in to follow this  
DarkZoulz

copy surface to texture with alphablending?

This topic is 4613 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

Hi! I'm wondering if it's possible to copy a section from a surface to a texture using TextureUpdate(), and does it alphablend if alpha channel is available? My goal is to paste a image with alpha channel onto a background texture.

Share this post


Link to post
Share on other sites
Advertisement
You'll have to render the texture to a render target and perform the blending yourself. There is no one method that will blend it all for you.

As far as the function you mentioned, do you mean IDirect3DDevice9::UpdateTexture? This function is just meant to copy textures from system memory to video memory. It has no capabilities to blend anything.

neneboricua

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!