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

Method create

tests/cpp-tests/Source/FontTest/FontTest.h:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34{
35public:
36 static FontTest* create(std::string_view fontFile)
37 {
38 auto ret = new FontTest;
39 if (ret->init())
40 {
41 ret->showFont(fontFile);
42 ret->autorelease();
43 }
44 else
45 {
46 delete ret;
47 ret = nullptr;
48 }
49
50 return ret;
51 }
52
53 void showFont(std::string_view fontFile);
54

Callers

nothing calls this directly

Calls 3

showFontMethod · 0.80
autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected