Search code examples
c++visual-c++allegro

Transparent sprites in c++ with Allegro


I'm learning to use Allegro. I'm trying to make my character cut out. How do I key out a certain color from my bitmap? which way is used for allegro? Thanks


Solution

  • These might be places to start:

    http://www.allegro.cc/manual/api/blitting-and-sprites/draw_trans_sprite

    http://wiki.allegro.cc/index.php?title=Alpha_channel#Drawing_to_the_alpha_channel_in_Allegro