#pragma once #include #include #include #include namespace rack { struct Svg { NSVGimage* handle = NULL; ~Svg(); /** Don't call this directly. Use `Svg::load()` for caching. */ void loadFile(const std::string& filename); /** Loads SVG data from a string. */ void loadString(const std::string& str); void draw(NVGcontext* vg); /** Loads Svg from a cache. */ static std::shared_ptr load(const std::string& filename); }; DEPRECATED typedef Svg SVG; void svgDraw(NVGcontext* vg, NSVGimage* svg); } // namespace rack