creator::CreatorReader* reader = creator::CreatorReader::createWithFilename("creator/CreatorSprites.ccreator");
// will create the needed spritesheets + design resolution
// get the scene graph
Scene* scene = reader->getSceneGraph();
// ...and use it
Details from the Cocos Creator forum:
What's C++ and lua support for creator
It includes two parts:
- First, it is a Cocos Creator plugin that can export scenes generated by Cocos Creator into .ccreator files.
- Second, it has a reader that can parse .ccreator files. The reader can be used in cocos2d-x c++/lua project.
There are two ways to get the plugin