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 π
polygon3d(3alleg4)β the parent function, the blueprint, the momenttriangle3d(3alleg4)β quad but make it three verticesex3d(3alleg4)β the example, go look at it, it's iconic
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 ππ
β¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms