Gives bitmap pixel storage of the given size and format, freeing what it held. The bitmap owns the
memory: free it with deinit.
bitmap: Bitmap;
bitmap_alloc(*bitmap, 8, 8, .R8);
defer deinit(*bitmap);
assert(bitmap.data.count == 64);bitmap_alloc :: (bitmap: *Bitmap, w: s32, h: s32, _format: Texture_Format)
Parameters
- bitmap: *Bitmap
- w: s32
- h: s32
- _format: Texture_Format