Can render SVGs that have relative sizes, also clip SVGs that go out of bounds
This commit is contained in:
parent
91603e1fc1
commit
d91c7e987f
10 changed files with 23 additions and 12 deletions
|
|
@ -7,11 +7,12 @@ using namespace Eigen;
|
|||
|
||||
struct DrawData;
|
||||
class World;
|
||||
class ResourceManager;
|
||||
|
||||
class ResourceDisplay {
|
||||
public:
|
||||
virtual void update(World& w) = 0;
|
||||
virtual bool load(const std::string& fileName, const std::string& fileData) = 0;
|
||||
virtual bool load(ResourceManager& rMan, const std::string& fileName, const std::string& fileData) = 0;
|
||||
virtual bool update_draw() const = 0;
|
||||
virtual void draw(SkCanvas* canvas, const DrawData& drawData, const SkRect& imRect) = 0;
|
||||
virtual Vector2f get_dimensions() const = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue