-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
I am using the following code to initialize my renderer:
initRenderer :: SDL.Window -> IO SDL.Renderer
initRenderer window = do
SDL.windowOpacity window SDL.$= 0
putStrLn "Here is the initial opacity: " >> SDL.get (SDL.windowOpacity window) >>= print
renderer <- (SDL.createRenderer window (-1) SDL.defaultRenderer)
SDL.rendererDrawBlendMode renderer SDL.$= SDL.BlendAlphaBlend
return rendererI'm intending for the window to be fully transparent. Instead, it is fully opaque and black. The function prints:
Here is the initial opacity:
1.0
indicating that the opacity was never affected. Other non-zero values do not affect the window's opacity either.
cabal-version: 3.12
The Glorious Glasgow Haskell Compilation System, version 9.10.2
NixOS 25.11 (If that matters)
Gnome 49 Wayland
Metadata
Metadata
Assignees
Labels
No labels