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

Method initWithString

core/2d/LabelAtlas.cpp:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59bool LabelAtlas::initWithString(std::string_view string,
60 std::string_view charMapFile,
61 int itemWidth,
62 int itemHeight,
63 int startCharMap)
64{
65 Texture2D* texture = _director->getTextureCache()->addImage(charMapFile);
66 return initWithString(string, texture, itemWidth, itemHeight, startCharMap);
67}
68
69bool LabelAtlas::initWithString(std::string_view string,
70 Texture2D* texture,

Callers 1

createMethod · 0.45

Calls 11

setStringMethod · 0.95
getInstanceFunction · 0.85
getTextureCacheMethod · 0.80
fullPathForFilenameMethod · 0.80
getValueMapFromFileMethod · 0.80
asIntMethod · 0.80
asStringMethod · 0.80
addImageMethod · 0.45
sizeMethod · 0.45
substrMethod · 0.45
find_last_ofMethod · 0.45

Tested by

no test coverage detected