Original Post
I'm doing a 2D over the top view game with SDL & OpenGL Basically, I draw out the ground first, then draw the hero over top, all using texture-mapped openGL squares. On the sprite, I have set the background of the bmp to (255,0,255) so that I can make it transparent. How can I make it so that only the non (255,0,255) coloured part of the sprite is opeque while the rest is transparant so that I can see the ground through him? Thanks