triangle3d(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ¦‹ NAME πŸ¦‹

okay so bestie, welcome to triangle3d(3) from the Allegro manual! This page is about triangle3d and triangle3d_f β€” they draw a 3d triangle onto the specified bitmap. Allegro game programming library, periodt. πŸ’–


✨ SYNOPSIS ✨

#include <allegro.h>

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

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

πŸ’… DESCRIPTION πŸ’…

Draw 3d triangles, bestie β€” using either fixed or floating point vertex structures. Choose your fighter. πŸ¦‹

Unlike quad3d[_f](), the triangle3d[_f]() functions are not wrappers of polygon3d[_f](). They use their own routines, and those routines take into account the constantness of the gradients. That means triangle3d[_f](bmp, type, tex, v1, v2, v3) is faster than polygon3d[_f](bmp, type, tex, 3, v[]). no cap. πŸ”₯

Also, go read the beginning of chapter "Polygon rendering" for a list of rendering types you can use with this function. it's giving essential lore. πŸ‘‘


🌈 SEE ALSO 🌈


source: Allegro. version: 4.4.3. date: the footer didn't list one, bestie β€” it just says triangle3d(3) and Allegro version 4.4.3. so that's the whole page. bye babes! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from