简体   繁体   中英

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

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

"Transparent pixels are marked by a zero in 256-color modes or bright pink for truecolor data (maximum red and blue, zero green)."

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM