extrans2(3alleg4)
β¨ extrans2 β¨
okay bestie so this is one of those Allegro demo pages β it lives in section 3 of the Allegro manual, and the whole vibe is "look what this little example program does". π
πΈ NAME πΈ
extrans2 β drawing flipped, translucent and tinted sprites. it's part of the Allegro game programming library, iykyk. π
π¦ SYNOPSIS π¦
#include <allegro.h>
Example extrans2
π DESCRIPTION π
okay so lowkey this program is a whole demonstration. it shows you how to draw trans and lit sprites and flip them at the same time, all using the draw_sprite_ex() function. the way that one function does three things at once?? main character energy fr fr. π
it displays several images moving around using different drawing modes β and while all that's happening, you can press the space key to change the flipping orientation. no cap, that's the whole interaction. press space, watch the flip change, live your life. π
π SEE ALSO π
everything else you might wanna peek at, all in section 3 of the Allegro manual, mwah π:
BITMAP(3alleg4)END_OF_MAIN(3alleg4)allegro_error(3alleg4)allegro_init(3alleg4)allegro_message(3alleg4)blit(3alleg4)clear_bitmap(3alleg4)create_bitmap(3alleg4)destroy_bitmap(3alleg4)draw_sprite_ex(3alleg4)font(3alleg4)install_keyboard(3alleg4)install_timer(3alleg4)key(3alleg4)load_bitmap(3alleg4)makecol(3alleg4)replace_filename(3alleg4)rest(3alleg4)screen(3alleg4)set_color_depth(3alleg4)set_gfx_mode(3alleg4)set_trans_blender(3alleg4)stretch_blit(3alleg4)textout_ex(3alleg4)
ok that's the whole page bestie, go forth and flip some sprites π«Ά
this has been your girl, signing off from Allegro version 4.4.3 β that's the one this page ships with π stay iconic, keep your sprites translucent, and remember: this whole thing is the extrans2(3alleg4) page. periodt. β¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms