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

triangle3d, triangle3d_f - Draws a 3d triangle onto the specified bitmap. Allegro game programming

Description

       Draw 3d triangles, using  either  fixed  or  floating  point  vertex  structures.   Unlike  quad3d[_f](),
       triangle3d[_f]()  functions are not wrappers of polygon3d[_f](). The triangle3d[_f]() functions use their
       own routines taking into account the constantness of the gradients. Therefore  triangle3d[_f](bmp,  type,
       tex, v1, v2, v3) is faster than polygon3d[_f](bmp, type, tex, 3, v[]).

       Read  the  beginning  of  chapter "Polygon rendering" for a list of rendering types you can use with this
       function.

Name

       triangle3d,  triangle3d_f  -  Draws  a  3d  triangle  onto the specified bitmap. Allegro game programming
       library.

See Also

polygon3d(3alleg4), quad3d(3alleg4), triangle(3alleg4)

Allegro                                           version 4.4.3                              triangle3d(3alleg4)

Synopsis

#include<allegro.h>voidtriangle3d(BITMAP*bmp,inttype,BITMAP*tex,V3D*v1,*v2,*v3);voidtriangle3d_f(BITMAP*bmp,inttype,BITMAP*tex,V3D_f*v1,*v2,*v3);

See Also