ALLEGRO_VERTEX(3alleg5)

ALLEGRO_VERTEX3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_primitives.h>
typedef struct ALLEGRO_VERTEX ALLEGRO_VERTEX;

Overview

Defines the generic vertex type, with a 3D position, color and texture coordinates for a single texture. Note that at this time, the software driver for this addon cannot render 3D primitives. If you want a 2D only primitive, set z to 0. Note that you must initialize all members of this struct when you’re using it. One exception to this rule are the u and v variables which can be left uninitialized when you are not using textures.

Fields:

•

x, y, z - Position of the vertex (float)

•

u, v - Texture coordinates measured in pixels (float)

•

color - ALLEGRO_COLOR(3alleg5) structure, storing the color of the vertex

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.