---
name: "ALLEGRO_LINE_CAP"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ALLEGRO_LINE_CAP/3alleg5"
---

# ALLEGRO\_LINE\_CAP(3alleg5)

Allegro 5 API

## NAME

ALLEGRO\_LINE\_CAP - Allegro 5 API

## SYNOPSIS

-

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

## DESCRIPTION

- •

  ALLEGRO\_LINE\_CAP\_NONE

- •

  ALLEGRO\_LINE\_CAP\_SQUARE

- •

  ALLEGRO\_LINE\_CAP\_ROUND

- •

  ALLEGRO\_LINE\_CAP\_TRIANGLE

- •

  ALLEGRO\_LINE\_CAP\_CLOSED \[IMAGE: *ALLEGRO\_LINE\_CAP styles*\] *ALLEGRO\_LINE\_CAP styles*

See the picture for the difference.

ALLEGRO\_LINE\_CAP\_CLOSED is different from the others - it causes the polygon to have no caps. (And the ALLEGRO\_LINE\_JOIN(3alleg5) style will determine how the vertex looks.)

## SINCE

5\.1.0

## SEE ALSO

al\_draw\_polygon(3alleg5)
