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

Method create

core/renderer/TextureCube.cpp:155–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155TextureCube* TextureCube::create(std::string_view positive_x,
156 std::string_view negative_x,
157 std::string_view positive_y,
158 std::string_view negative_y,
159 std::string_view positive_z,
160 std::string_view negative_z)
161{
162 auto ret = new TextureCube();
163 if (ret->init(positive_x, negative_x, positive_y, negative_y, positive_z, negative_z))
164 {
165 ret->autorelease();
166 return ret;
167 }
168 AX_SAFE_DELETE(ret);
169 return nullptr;
170}
171
172bool TextureCube::init(std::string_view positive_x,
173 std::string_view negative_x,

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected