-
Notifications
You must be signed in to change notification settings - Fork 343
wlr_render_rect improvement proposal #2258
Comments
We kept the renderer to the bare minimum because there'll always be that "one last feature" compositors need. We prefer compositors to directly use OpenGL when they need something more complicated. |
This one at least "it would respect the alpha component of the color provided" |
This one would be a bug. IIRC it works correctly when we use it in Sway? |
I did a quick test with the tinywl code.
https://raw.githubusercontent.com/icedman/tinybox/master/screenshots/tinywl-varying-alpha.png |
I think the source color needs to have premultiplied alpha, right @emersion ? |
Oh, good point, forgot about pre-multiplied alpha. @ascent12 Should we handle this in the renderer? |
Closing because the original question is answered. Feel free to open a separate bug report for the alpha issue. |
This is more of a request or a proposal for wlr_render_rect:
Rationale:
With the above changes, we could render a lot more "styled" decorations without resorting to cairo and caching textures.
#1 allows for simple gradients
#2 allows for bevels (with some overdraw).
#2 also allows for recoloring textures with gradient overlays.
Why I personally want these changes : I'm trying to recreate the blackbox/fluxbox on wlroots from the tinywl code. Currently, I have to resort to cairo for most of the rendering.
But I think even sway could achieve more styling with the two simple changes.
The text was updated successfully, but these errors were encountered: