1ALLEGRO_VERTEX(3)          Library Functions Manual          ALLEGRO_VERTEX(3)
2
3
4

NAME

6       ALLEGRO_VERTEX
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              typedef struct ALLEGRO_VERTEX ALLEGRO_VERTEX;
12

DESCRIPTION

14       Defines  the generic vertex type, with a 3D position, color and texture
15       coordinates for a single texture.  Note that at this time, the software
16       driver  for  this  addon cannot render 3D primitives.  If you want a 2D
17       only primitive, set z to 0.  Note that when  you  must  initialize  all
18       members  of  this  struct  when you're using it.  One exception to this
19       rule are the u and v variables which can be left uninitialized when you
20       are not using textures.
21
22       Fields:
23
24       · x, y, z - Position of the vertex
25
26       · color - ALLEGRO_COLOR(3) structure, storing the color of the vertex
27
28       · u, v - Texture coordinates measured in pixels
29

SEE ALSO

31       ALLEGRO_PRIM_ATTR(3)
32
33
34
35Allegro reference manual                                     ALLEGRO_VERTEX(3)
Impressum