I want to load a pixmap in any format, convert the pixels to an PF_A8 alpha map, based on pixel brightness, and then create a GL_ALPHA texture from that.
Can someone explain how this works? Thank you.
PF_RGBA8888 -> PF_A8 -> GL_ALPHA does work, BTW, so it seems the faulty step is in converting RGB888 and I8 to A8.
Can someone explain how this works? Thank you.
PF_RGBA8888 -> PF_A8 -> GL_ALPHA does work, BTW, so it seems the faulty step is in converting RGB888 and I8 to A8.