DAT_ID(3alleg4)

πŸ’– DAT_ID πŸ’–

the Allegro manual, but make it a group chat ✨ (this one lives in section 3alleg4, iykyk)


🌸 NAME 🌸

DAT_ID β€” makes an ID value from four letters πŸ¦‹ part of the Allegro game programming library, bestie πŸ’œ


✨ SYNOPSIS ✨

#include <allegro.h>

Macro DAT_ID(a, b, c, d);

okay so that's literally it, that's the whole vibe πŸŽ€


🫢 DESCRIPTION 🫢

So every single object or property inside a datafile gets identified by a 4 letter ID, right? And this macro is the girl who makes that ID for you πŸ’…

Like, say you wanna access the NAME property of a datafile object β€” you'd be like:

get_datafile_property(datob, DAT_ID('N','A','M','E'));

and boom, you're in ✨ the macro squishes those four lil letters into one ID value and hands it over. no cap, that's the whole job πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯


k byeeee, this was Allegro version 4.4.3, DAT_ID girlie signing off πŸ’œβœ¨ slay, stay iconic, read ur man pages πŸŽ€πŸ¦‹