PEXPORT psx_svg *PICAPI psx_svg_load_from_memory(const ps_byte *data, size_t length, psx_result *err_code)
Create a new psx_svg object and load data from memory.
psx_result
Status code return by call APIs.
PEXPORT void PICAPI psx_svg_destroy(psx_svg *doc)
Destroy the psx_svg object and release resources.
struct _psx_svg_render psx_svg_render
An opaque type represents an svg render object.
PEXPORT psx_svg *PICAPI psx_svg_load(const char *file_name, psx_result *err_code)
Create a new psx_svg object and load from file.
PEXPORT void PICAPI psx_svg_shutdown(void)
Release resources and shutdoen.
PEXPORT psx_result PICAPI psx_svg_render_draw(ps_context *ctx, const psx_svg_render *render)
Draws an psx_svg_render object into the given context.
uint8_t ps_byte
byte data type
struct _ps_context ps_context
An opaque type represents a Picasso drawing environment.
struct _psx_svg psx_svg
An opaque type represents an svg document.
PEXPORT psx_result PICAPI psx_svg_init(void)
Initialze the library and load resources.
PEXPORT void PICAPI psx_svg_render_destroy(psx_svg_render *render)
Destroy the psx_svg_render object and release resources.