A zeroed image of the given size, or an empty one when the size or format is invalid. Free it with deinit.
image := make_image(16, 8, .RGBA8);
defer deinit(*image);
assert(image.width == 16 && image.pixels.count == 16 * 8 * 4);
assert(make_image(0, 8, .RGBA8).pixels.count == 0);make_image :: (width: s32, height: s32, format: Pixel_Format) -> Image
Parameters
- width: s32
- height: s32
- format: Pixel_Format