|
| ImageResource (const std::string &source_path) |
|
void | LoadPNG (const std::string &source_path) |
|
void | CopyTo (uint8_t *target) const |
| Copies the image data to the given target, which must be allocated and sufficiently large.
|
|
void | SwizzleTo (uint8_t *target) const |
|
|
uint8_t * | data {nullptr} |
|
uint32_t | width {0} |
|
uint32_t | height {0} |
|
uint32_t | pitch {0} |
|
uint32_t | bytes_per_pixel {0} |
|
◆ LoadPNG()
void ImageResource::LoadPNG |
( |
const std::string & |
source_path | ) |
|
Loads a PNG file from the filesystem.
source_path - Windows style path to the PNG file to load (e.g., "D:\\image_blit\\TestImage.png")
◆ SwizzleTo()
void ImageResource::SwizzleTo |
( |
uint8_t * |
target | ) |
const |
Copies the image data to the given target, which must be allocated and sufficiently large, and performs texture swizzling.
The documentation for this struct was generated from the following files: