ALLEGRO_VERTEX - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro_primitives.h>

typedef struct ALLEGRO_VERTEX ALLEGRO_VERTEX;

Description

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:

See Also

ALLEGRO_PRIM_ATTR(3)

Referenced By

al_create_vertex_buffer(3), al_draw_indexed_prim(3), al_draw_prim(3), ALLEGRO_VERTEX_ELEMENT(3).

Allegro reference manual