dhpoware logo
navbar
home products source demos contact us
navbar navbar
box top left corner box top right corner
 
 
Direct3D Layered Windows Demo.

This demo builds on the previous layered windows demo. In the previous demo a TGA image with an embedded alpha mask was used for the shape of the layered window. In this demo Direct3D is used to draw a rotating teapot to an off-screen texture. This off-screen texture is then used as the shape of the per pixel alpha blended layered window.

This demo was built using the June 2010 update of the Microsoft DirectX SDK. The required end-user runtimes can be downloaded here.

Note:
1. This demo requires Windows 2000, XP, or higher to run. The minimum supported operating system for the layered windows API is Windows 2000.
2. This demo requires the Visual C++ 2010 Library Runtimes. Download instructions can be found here.

screenshot

zip file Download executable, source, and Visual C++ 2010 solution files.

Change History:

10 July 2010.
Added missing .vcxproj.filters file to the project.

13 June 2010.
Updated solution to Microsoft Visual Studio 2010.

2 February 2008.
Updated solution to Microsoft Visual Studio 2008.

21 October 2006.
Updated the ImagePreMultAlpha() function with a performance optimization submitted by Jordan Bayliss-McCulloch.

22 March 2006.
This demo uses the same ImagePreMultAlpha() function as the Layered Windows Demo. This demo's ImagePreMultAlpha() function was updated to include the fix for the black pixels issue (as described in the Layered Windows Demo change history).

 
box bottom left corner content box box bottom right corner
logo logo