VKVG  
Vulkan Vector Graphics

◆ vkvg_rounded_rectangle2()

void vkvg_rounded_rectangle2 ( VkvgContext  ctx,
float  x,
float  y,
float  w,
float  h,
float  rx,
float  ry 
)

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.
rxThe horizontal radius of the corners.
ryThe vertical radius of the corners.
Returns
VKVG_STATUS_SUCCESS or VKVG_STATUS_INVALID_RECT if width or height is equal to 0.