clip3d(3alleg4)
β¨ clip3d β¨
okay bestie, welcome to the Allegro manual, specifically the page for clip3d β the fixed point girlie of the clipping world π
π NAME π
clip3d β clips the polygon given in vtx using fixed point math. part of the Allegro game programming library, no cap π«Ά
πΈ SYNOPSIS πΈ
#include <allegro.h>
int clip3d(int type, fixed min_z, fixed max_z, int vc, const V3D *vtx[],
V3D *vout[], V3D *vtmp[], int out[]);
π DESCRIPTION π
so this is literally the fixed point version of clip3d_f() β¨
but listen, bestie β use this one with caution π because fixed point arithmetic has limited precision and there is a high chance of rounding errors. like, the floating point code is better for most situations, fr fr. it's giving "only if you know what you're doing" energy π
β οΈ not me warning you twice: limited precision + rounding errors = risky. clip3d_f() is the safer main character for most cases π
π RETURN VALUE π
returns the number of vertices after clipping is done π« iconic, simple, slay.
π SEE ALSO π
Allegro version 4.4.3 β mwah, that's the version this page is serving, periodt π β¨ π π¦ π
π¦ 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