Skip to content

v0.1.0

Latest

Choose a tag to compare

@jeweg jeweg released this 27 Apr 19:44

First tagged release of the Win32 window transparency reference demos.

What's included

Eight self-contained programs, each isolating one aspect of window transparency on Windows 10/11:

  • 01_basic_opaque -- baseline opaque window
  • 02_popup_no_decorations -- chromeless popup
  • 03_win11_backdrop-- Mica/Acrylic via DWMWA_SYSTEMBACKDROP_TYPE
  • 04_layered_uniform_alpha -- WS_EX_LAYERED with SetLayeredWindowAttributes
  • 05_perpixel_alpha -- the recommended path: BLACK_BRUSH + DwmEnableBlurBehindWindow
  • 06_perpixel_alpha_patblt -- same idea, GDI-rendered content
  • 07_vulkan_perpixel_alpha -- Vulkan swapchain with VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR, uploading a per-pixel radial alpha pattern
  • 08_glfw_transparency_bug -- minimal repro for GLFW's GLFW_TRANSPARENT_FRAMEBUFFER issue (see glfw/glfw#2815)

Notes

See README for the full background on DWM redirection surfaces, when to use which mechanism, and why WS_EX_NOREDIRECTIONBITMAP should be avoided.

Built with MSVC + CMake. Vulkan SDK and GLFW are fetched/found by CMake.