* Load image from file into CPU memory (RAM) * * @throws raylib::RaylibException Thrown if the image failed to load from the file. * * @see ::LoadImage() */
| 216 | * @see ::LoadImage() |
| 217 | */ |
| 218 | void Load(const std::string& fileName) { |
| 219 | set(::LoadImage(fileName.c_str())); |
| 220 | if (!IsValid()) { |
| 221 | throw RaylibException("Failed to load Image from file: " + fileName); |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Load image from RAW file data. |
nothing calls this directly
no test coverage detected