Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 364 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 364 Bytes

Cocos2d-x SVGSprite

Alt

Support cocos2d-x display SVG as sprite or path

ref: NanoSVG ( https://github.com/memononen/nanosvg )

Setup:

Add source code to your Class folder or anywhere

Using:

#include "SVGSprite.h"
...
SVGSprite* testSVG = SVGSprite::create("tiger.svg", 0.5f);
this->addChild(testSVG);