al_triangulate_polygon - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro_primitives.h>

bool al_triangulate_polygon(
   const float* vertices, size_t vertex_stride, const int* vertex_counts,
   void (*emit_triangle)(int, int, int, void*), void* userdata)

Description

Divides a simple polygon into triangles, with zero or more other simple polygons subtracted from it - the holes. The holes cannot touch or intersect with the outline of the main polygon. Simple means the polygon does not have to be convex but must not be self-overlapping.

Parameters:

Since

5.1.0

See Also

al_draw_filled_polygon_with_holes(3)

Referenced By

al_draw_filled_polygon_with_holes(3).

Allegro reference manual