Reputation: 148
How do I make the window background display a blurred version all windows below it (similar to the Windows Acrylic Effect).
Is there any way to use SetWindowCompositionAttribute with a GLFW window ? Or alternatively Render the whole window (effectively screen capture) to a frame buffer and then manually apply the blur? What is the viability of such a method for a lightweight application?
Upvotes: 3
Views: 862
Reputation: 2338
GLFW itself does not support such a feature, however, there is an open issue for it.
You can write platform specific code with GLFW. GLFW provides functions to retrieve the underlying platform specific constructs.
Something like this might work (version 3.4):
if (glfwGetPlatform() == GLFW_PLATFORM_WIN32) {
HWND nativeWindow = glfwGetWin32Window(window);
const HRESULT returnCode = DwmSetWindowAttribute(
nativeWindow,
...,
...,
...
);
}
Upvotes: 1