logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

clip3d - Clips the polygon given in vtx using fixed point math. Allegro game programming library.

Description

       Fixed point version of clip3d_f(). This function  should  be  used  with  caution,  due  to  the  limited
       precision of fixed point arithmetic and high chance of rounding errors: the floating point code is better
       for most situations.

Name

       clip3d - Clips the polygon given in vtx using fixed point math. Allegro game programming library.

Return Value

       Returns the number of vertices after clipping is done.

See Also

polygon3d(3alleg4), clip3d_f(3alleg4)

Allegro                                           version 4.4.3                                  clip3d(3alleg4)

Synopsis

#include<allegro.h>intclip3d(inttype,fixedmin_z,fixedmax_z,intvc,constV3D*vtx[],V3D*vout[],V3D*vtmp[],intout[]);

See Also