@namkazt wrote:
Support cocos2d-x display SVG as sprite or path
ref: NanoSVG ( https://github.com/memononen/nanosvg )
For now it turn SVG to PNG data and create Texture2D from it. So image will break if scale.
Next thing i will add SVGImage to display fully SVG. ( already have but bug )Setup:
Add source code to your Class folder or anywhereUsing:
#include "SVGSprite.h" ... SVGSprite* testSVG = SVGSprite::create("tiger.svg", 0.5f); this->addChild(testSVG);
Posts: 1
Participants: 1