RGB_MAP(3)

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

πŸ’– RGB_MAP πŸ’–

okay so bestie, welcome to the RGB_MAP page from the Allegro manual β€” yes, the Allegro, the game programming library, version 4.4.3, she's iconic, she's legacy, she's still here. ✨ This whole page is one tiny struct that does one extremely useful thing, and we're gonna get into it. πŸŽ€


🌸 NAME 🌸

RGB_MAP β€” literally just stores an rgb map so your conversions can go zoom. πŸ’¨ Part of the Allegro game programming library, no cap. 🫢


✨ SYNOPSIS ✨

#include <allegro.h>

typedef struct RGB_MAP

that's it, that's the whole vibe check. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the actual meat of the struct, the one field, the main character: πŸ‘‘

unsigned char data[32][32][32];

and that's the entire struct. 32 by 32 by 32, three whole dimensions, a little cube of unsigned char energy. 🌈

now, for the how do I even use this part β€” the manual is very much giving "go read the chapter", and honestly? valid. πŸ“– You want the chapter "Converting between color formats" because that's where the description of how to obtain and how to use this structure lives. Not here. There. Go look. πŸ™ˆ

fr fr, don't just stare at the struct and hope it explains itself. the chapter is the whole point. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go be nosy, bestie, these are all friends of the family: 🫢


and that's the page!! ty for reading, you ate that πŸ’…βœ¨

this has been Allegro, version 4.4.3, signing off β€” mwah πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from