Right now I am using the atlimage header file with transparentblt. I was wondering what the DirectX equivalent was. Any help would be great.
Right now I am using the atlimage header file with transparentblt. I was wondering what the DirectX equivalent was. Any help would be great.
When you create your direct draw surface you must specify a source or destination color key in one of the DDSURFACEDESC2 members. Then when you use IDirectDrawSurface::Blt( ) , use the appropriate flag for the source/dest color key information. For the exact flags and members look it up in your DX Help File.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers