MCPcopy Create free account
hub / github.com/axmolengine/axmol / initWithFile

Method initWithFile

core/2d/ParticleBatchNode.cpp:122–126  ·  view source on GitHub ↗

* init with FileImage */

Source from the content-addressed store, hash-verified

120 * init with FileImage
121 */
122bool ParticleBatchNode::initWithFile(std::string_view fileImage, int capacity)
123{
124 Texture2D* tex = _director->getTextureCache()->addImage(fileImage);
125 return initWithTexture(tex, capacity);
126}
127
128// ParticleBatchNode - composition
129

Callers 1

createMethod · 0.45

Calls 2

getTextureCacheMethod · 0.80
addImageMethod · 0.45

Tested by

no test coverage detected