lib.res.graphics
Typedef MipmapCB
in tex.h
callback function for each mipmap level.
- Parameters:
level - number; 0 for base level (i.e. 100%), or the first one
in case some were skipped.
level_w, - level_h pixel dimensions (powers of 2, never 0)
level_data - the level's texels
level_data_size - [bytes]
ctx - passed through from tex_util_foreach_mipmap.
MipmapCB
public typedef void ( * MipmapCB )( uint level, uint level_w, uint level_h, const u8* RESTRICT level_data, size_t level_data_size, void* RESTRICT ctx );