34 #include "eng3d/io.hpp"
35 #include "eng3d/color.hpp"
42 buffer =
"" + filename +
": " + message;
45 virtual const char*
what() const noexcept {
46 return buffer.c_str();
61 virtual void to_file(
const std::string& filename);
virtual const char * what() const noexcept
BinaryImageException(const std::string &filename, const std::string &message)
This binary image class helps load images and visual resources from the disk; the binary image IS NOT...
virtual ~BinaryImage()=default
virtual void from_file(const Eng3D::IO::Path &path)
virtual void to_file(const std::string &filename)
Eng3D::Color get_pixel(size_t x, size_t y) const
Obtains a pixel from the binary image.
std::unique_ptr< uint32_t[]> buffer
BinaryImage & operator=(const BinaryImage &)=delete
Primitive color type used through the engine.
constexpr static Color argb32(uint32_t argb)
Create a color from RGBA32 components.
The path class abstracts away most of the burden from handling system-dependant filesystem paths.