| 153 | } |
| 154 | |
| 155 | TextureCube* 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 | |
| 172 | bool TextureCube::init(std::string_view positive_x, |
| 173 | std::string_view negative_x, |
nothing calls this directly
no test coverage detected