49 void Clean()
override;
The base class for all assets.
Definition Asset.h:9
Represents an image asset.
Definition Image.h:12
bool alpha
Definition Image.h:19
Asset * LoadFromFile(const char *path, void *output) override
Loads an image from a file.
Definition Image.cpp:12
int height
Definition Image.h:18
Image()=default
Default constructor for Image.
int channels
Definition Image.h:16
void Clean() override
Cleans up the image asset.
Definition Image.cpp:22
uint8 * pixelBuffer
Definition Image.h:15
Image(const std::string &x, uint8 *buf, int ch, int w, int h, bool a)
Constructor for Image.
Definition Image.h:35
int width
Definition Image.h:17
std::string path
Definition Image.h:14