exshade(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ 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:


🌈 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