Code: Show/Hide * notes:
* - bitmap must be 24-bit format (default output of mspaint). * - bitmap width must be a multiple of 4 (due to trailing zeroes). * - for use as a texture bitmap dimensions must be a power of 2, but they * don't have to be the same, for example width 64 and height 128. * * fixme: * - add support for bmps with widths not a multiple of 4 (trailing zeroes) * - add support for paletted bmps (8-bit, etc) -> 8888 * - add support for generating palettes from 8888 bmps * (most likely use first n colors found instead of smart dithering) |