habababa wrote:
How do I set a certain color like black to be transparent with a 16bit Bitmap?
Do I use GL_TEXTURE_COLOR0_TRANSPARENT?
There's no example that illustrates this in the libnds examples folder.
So you want ColourKey transparency? so basically:
A = 0 = RGB(0,0,0)
Where Alpha is equal to 0 if the RGB components are all 0 (black)
You can loop through your texture bitmap array and process each 16-bit value, if the RGB bits are all 0 then you can set bit 15 to 0 otherwise bit 15 would be 1
_________________Move over Mario... and cruise by Crash... Croc Rocks!It's a serious adventure 3D platformer for all retro gamers to drool over =D