VKVG  
Vulkan Vector Graphics

◆ vkvg_rounded_rectangle()

vkvg_status_t vkvg_rounded_rectangle ( VkvgContext  ctx,
float  x,
float  y,
float  w,
float  h,
float  radius 
)

Adds a closed sub-path rectangle of the given size to the current path at position (x, y).

Parameters
ctxThe vkvg context pointer.
xThe x coordinate of the top left corner of the rectangle to emit.
yThe y coordinate of the top left corner of the rectangle to emit.
wThe width in pixel of the rectangle to draw.
hThe height in pixel of the rectangle to draw.
radiusThe radius of the corners.
Returns
VKVG_STATUS_SUCCESS or VKVG_STATUS_INVALID_RECT if width or height is equal to 0.