| 177 | } |
| 178 | |
| 179 | Texture* Texture::FromFile(const StringView& path, bool generateMips) |
| 180 | { |
| 181 | auto texture = Content::CreateVirtualAsset<Texture>(); |
| 182 | if (texture->LoadFile(path, generateMips)) |
| 183 | { |
| 184 | texture->DeleteObject(); |
| 185 | texture = nullptr; |
| 186 | } |
| 187 | return texture; |
| 188 | } |
nothing calls this directly
no test coverage detected