quad3d(3alleg4)

πŸ’– quad3d β€” bestie edition πŸ’–

okay so this is a page from the Allegro manual, section 3alleg4, and it's literally all about drawing 3d quads. no cap. it's giving "graphics girlie who also knows her vertex structures" ✨


✨ NAME ✨

quad3d, quad3d_f β€” draws a 3d quad onto the specified bitmap, courtesy of the Allegro game programming library. πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

void quad3d(BITMAP *bmp, int type, BITMAP *tex, V3D *v1, *v2, *v3, *v4);

void quad3d_f(BITMAP *bmp, int type, BITMAP *tex, V3D_f *v1, *v2, *v3,
*v4);

πŸ¦‹ DESCRIPTION πŸ¦‹

so we're drawing 3d quads, and you get to pick your vibe: fixed point vertex structures (V3D) or floating point ones (V3D_f). pick your fighter, both slay πŸ’…

these two are lowkey just doing the exact same thing as calling:

polygon3d(bmp, type, tex, 4, v[])

or

polygon3d_f(bmp, type, tex, 4, v[])

fr fr, that's it. a quad is just a polygon that showed up with four vertices instead of however many. main character energy 🫢

heads up bestie: go read the beginning of the chapter "Polygon rendering" β€” that's where the list of rendering types you can pass in for type lives. i can't manifest them out of thin air, they're all listed over there. 🧚

πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, bestie!! 🌈 this was Allegro, version 4.4.3 β€” the quad3d page, section 3alleg4. mwah, go draw some quads, ily πŸ’–πŸ’…βœ¨