Can render SVGs that have relative sizes, also clip SVGs that go out of bounds

This commit is contained in:
Yousef Khadadeh 2025-08-07 17:45:10 +03:00
parent 91603e1fc1
commit d91c7e987f
10 changed files with 23 additions and 12 deletions

View file

@ -7,7 +7,7 @@
class SvgResourceDisplay : public ResourceDisplay {
public:
virtual void update(World& w) override;
virtual bool load(const std::string& fileName, const std::string& fileData) override;
virtual bool load(ResourceManager& rMan, const std::string& fileName, const std::string& fileData) override;
virtual bool update_draw() const override;
virtual void draw(SkCanvas* canvas, const DrawData& drawData, const SkRect& imRect) override;
virtual Vector2f get_dimensions() const override;