raygui
raygui copied to clipboard
Added GuiButtonRounded & GuiDrawRectangleRounded
This merge request adds support for rounded GUI elements by introducing two new functions:
-
GuiDrawRectangleRounded
Draws a filled and bordered rounded rectangle using Raylib’sDrawRectangleRoundedandDrawRectangleRoundedLines.- Parameters include
roundnessandsegmentsfor customization. - Maintains GUI alpha fading and debug bounds support.
- Parameters include
-
GuiButtonRounded
A rounded-corner version ofGuiButtonwith identical behavior and styling logic.- Uses
GuiDrawRectangleRoundedfor rendering. - Supports states: normal, focused, pressed, and disabled.
- Uses
These additions enhance GUI design flexibility while preserving Raygui’s lightweight and modular style.