_putpixel(3alleg4)

✨ NAME ✨

_putpixel, _putpixel15, _putpixel16, _putpixel24, _putpixel32 β€” okay so basically these are the faster, depth-specific versions of putpixel() πŸ’… and they live in the Allegro game programming library πŸŽ€


🌈 SYNOPSIS 🌈

#include <allegro.h>

void _putpixel(BITMAP *bmp, int x, int y, int color);

void _putpixel15(BITMAP *bmp, int x, int y, int color);

void _putpixel16(BITMAP *bmp, int x, int y, int color);

void _putpixel24(BITMAP *bmp, int x, int y, int color);

void _putpixel32(BITMAP *bmp, int x, int y, int color);

πŸ’– DESCRIPTION πŸ’–

So they do the same lil thing as the regular putpixel() bestie, but way faster ⚑ because each one is implemented as an inline assembler function tuned for one specific color depth. That's the whole glow-up.

Now the receipts, because these are not for the faint of heart πŸ™ˆ:

  • They will not work in mode-X graphics modes β€” not a vibe, just a fact, periodt.
  • They do zero clipping. Like none. Not even a little. They will crash if you try to draw outside the bitmap πŸ’€ so stay in your lane with the coordinates, fr fr.
  • They ignore the drawing mode entirely. The drawing mode? Never heard of her. πŸ‘‘
No cap: these are fast because they skip all the safety rails. If you need the rails, use the regular putpixel().

πŸ‘‘ SEE ALSO πŸ‘‘


That's the whole page bestie, you ate 🫢 This was the 3alleg4 manual, Allegro version 4.4.3 β€” mwah, slay, go draw some pixels responsibly βœ¨πŸŽ€πŸ’–