faiface / pixel

A hand-crafted 2D game library in Go
MIT License
4.46k stars 246 forks source link

Support glfw.TransparentFramebuffer window hint #234

Closed fgrosse closed 4 years ago

fgrosse commented 4 years ago

Now that we have GLFW 3.3, we can use the TransparentFramebuffer window hint. This allows us to render windows which display transparent content so we can see other applications "through" it.

GLFW_TRANSPARENT_FRAMEBUFFER specifies whether the window framebuffer will be transparent. If enabled and supported by the system, the window framebuffer alpha channel will be used to combine the framebuffer with the background. This does not affect window decorations.

https://www.glfw.org/docs/3.3/window_guide.html#window_hints_wnd