VKVG  
Vulkan Vector Graphics

◆ vkvg_rectangle()

vkvg_status_t vkvg_rectangle ( VkvgContext  ctx,
float  x,
float  y,
float  w,
float  h 
)

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.
Returns
VKVG_STATUS_SUCCESS or VKVG_STATUS_INVALID_RECT if width or height is equal to 0.