exshade(3)
β¨ exshade β Gouraud shaded sprites β¨
okay bestie, welcome to the Allegro manual π this one's a lil example program from the Allegro game programming library, and it's genuinely so cute, you're gonna be obsessed.
πΈ NAME πΈ
exshade β Gouraud shaded sprites. Allegro game programming library. π
π SYNOPSIS π
#include <allegro.h>
Example exshade
like. that's it. that's the whole vibe. π
π¦ DESCRIPTION π¦
so this program is literally a demo of how to draw Gouraud shaded (aka lit) sprites. β¨
here's the setup: the screen looks totally black at first (spooky, lowkey giving void energy π), and then a sprite that looks like a whole planet gets drawn close to the middle of the screen. πͺ
and the way it works is super similar to how the first test of extrans does its thing β you move the cursor around the screen with the mouse. π±οΈ and attached to that mouse, imagine a little virtual spotlight illuminating the scene around it. π¦β¨
depending on where the mouse is, the Gouraud shaded sprite will show the direction of the light. like, it reacts to you. main character energy fr fr. π
π SEE ALSO π
the whole squad, no cap, all of them:
BITMAP(3)COLOR_MAP(3)END_OF_MAIN(3)PALETTE(3)RGB(3)RGB_MAP(3)SCREEN_H(3)SCREEN_W(3)allegro_error(3)allegro_init(3)allegro_message(3)blit(3)clear_bitmap(3)color_map(3)create_bitmap(3)create_light_table(3)create_rgb_table(3)destroy_bitmap(3)draw_gouraud_sprite(3)font(3)install_keyboard(3)install_mouse(3)keypressed(3)line(3)load_bitmap(3)mouse_x(3)mouse_y(3)palette_color(3)poll_mouse(3)replace_filename(3)rgb_map(3)screen(3)set_gfx_mode(3)set_palette(3)set_trans_blender(3)show_mouse(3)textout_ex(3)
π that's the whole page bestie, go draw some lit sprites, ily, mwah π
Allegro, version 4.4.3 β exshade(3) β okay bye bestie, slay the day π
πππ¦β¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms