mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-16 03:08:05 +00:00
The implementation works by handling special cases where rectangles have semi-transparent background colors or rounded corners. For these cases, it first copies the underlying image region from the window device context, blends the rectangle on top of this captured background, and then draws the final result back to the window DC because we can't access and modify window dc bits directly. Also this approach requires custom pixel processing for color blending and uses sqrtf for precise anti-aliased corners, which isn't ideal for performance. A `gdi_fabulous` flag is provided to toggle this feature when needed. |
||
---|---|---|
.. | ||
cairo | ||
raylib | ||
SDL2 | ||
SDL3 | ||
web | ||
win32_gdi |