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

Method create

core/3d/BillBoard.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57BillBoard* BillBoard::create(std::string_view filename, Mode mode)
58{
59 BillBoard* billboard = new BillBoard();
60 if (billboard->initWithFile(filename))
61 {
62 billboard->_mode = mode;
63 billboard->autorelease();
64 return billboard;
65 }
66 AX_SAFE_DELETE(billboard);
67 return nullptr;
68}
69
70BillBoard* BillBoard::create(std::string_view filename, const Rect& rect, Mode mode)
71{

Callers

nothing calls this directly

Calls 3

autoreleaseMethod · 0.80
initWithFileMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected