简体   繁体   中英

Can I tell direct3d to render with alpha channel?

I need to composite direct3d renders on top of a video feed, the way i have it setup the format i get the data in is 32 bit xrgb with a byte for red green blue and a throw away. Can I get it to render with an alpha channel so i can use it for better blending?

You sure can. Use D3DFMT_A8R8G8B8 for your back buffer.

http://msdn.microsoft.com/en-us/library/bb172558(VS.85).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM