VKVG  
Vulkan Vector Graphics

◆ vkvg_surface_create_from_svg()

VkvgSurface vkvg_surface_create_from_svg ( VkvgDevice  dev,
uint32_t  width,
uint32_t  height,
const char *  svgFilePath 
)

Create a new vkvg surface by loading a SVG file.

Parameters
devThe vkvg Device used for creating the surface.
svgFilePathThe path of the SVG file to load.
widthforce the rendering width, if 0 autosize from svg.
heightforce the rendering height, if 0 autosize from svg.
Returns
The new vkvg surface with the loaded SVG drawing as content, or null if an error occured.