VKVG  
Vulkan Vector Graphics

◆ vkvg_surface_create_from_svg_fragment()

VkvgSurface vkvg_surface_create_from_svg_fragment ( VkvgDevice  dev,
uint32_t  width,
uint32_t  height,
char *  svgFragment 
)

Create a new vkvg surface by parsing a string with a valid SVG fragment passed as argument.

Parameters
devThe vkvg device used for creating the surface.
widthforce the rendering width, if 0 autosize from svg.
heightforce the rendering height, if 0 autosize from svg.
svgFragmentThe SVG fragment to parse.
Returns
The new vkvg surface with the parsed SVG fragment as content, or null if an error occured.