---
name: "ALLEGRO_PRIM_TYPE"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_PRIM_TYPE"
---

# ALLEGRO\_PRIM\_TYPE(3)

Allegro 5 API

## NAME

ALLEGRO\_PRIM\_TYPE - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_primitives.h>
  typedef enum ALLEGRO_PRIM_TYPE
  ```

## DESCRIPTION

Enumerates the types of primitives this addon can draw.

- •

  ALLEGRO\_PRIM\_POINT\_LIST - A list of points, each vertex defines a point

- •

  ALLEGRO\_PRIM\_LINE\_LIST - A list of lines, sequential pairs of vertices define disjointed lines

- •

  ALLEGRO\_PRIM\_LINE\_STRIP - A strip of lines, sequential vertices define a strip of lines

- •

  ALLEGRO\_PRIM\_LINE\_LOOP - Like a line strip, except at the end the first and the last vertices are also connected by a line

- •

  ALLEGRO\_PRIM\_TRIANGLE\_LIST - A list of triangles, sequential triplets of vertices define disjointed triangles

- •

  ALLEGRO\_PRIM\_TRIANGLE\_STRIP - A strip of triangles, sequential vertices define a strip of triangles

- •

  ALLEGRO\_PRIM\_TRIANGLE\_FAN - A fan of triangles, all triangles share the first vertex
