You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
- #include <memory>
-
- #include <nanovg.h>
- #include <nanosvg.h>
-
- #include <common.hpp>
-
-
- 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<Svg> load(const std::string& filename);
- };
-
- DEPRECATED typedef Svg SVG;
-
-
- void svgDraw(NVGcontext* vg, NSVGimage* svg);
-
-
- } // namespace rack
|