|
Is there a way to add opacity to a shape? |
AleX-G Squadron
Member #13,593
October 2011
|
Hi guys! www.anothergames.com |
Matthew Leverton
Supreme Loser
January 1999
|
Yes, it can be done. Use primitives with the proper colors and blender. |
Dizzy Egg
Member #10,824
March 2009
|
If your using Allegro 4.x you can use draw_trans_sprite after setting the blender; if your using Allegro 5 I'm stuck.
---------------------------------------------------- |
Thomas Fjellstrom
Member #476
June 2000
|
Dizzy Egg said: If your using Allegro 4.x you can use draw_trans_sprite after setting the blender; if your using Allegro 5 I'm stuck. Actually, in allegro 4, if you're using the primitives, you want to call drawing_mode to setup translucent drawing. -- |
Desmond Taylor
Member #11,943
May 2010
|
and in Allegro 5 it's al_set_blender() and then al_draw_*() |
Dizzy Egg
Member #10,824
March 2009
|
Thomas, I thought it was set_trans_blender() ?? I smoke a lot EDIT: Ahh using primitives, sorry
---------------------------------------------------- |
|