1ALLEGRO_VERTEX(3)                                            ALLEGRO_VERTEX(3)
2
3
4

NAME

6       ALLEGRO_VERTEX - Allegro 5 API
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 you must initialize all  members
18       of  this  struct  when you’re using it.  One exception to this rule are
19       the u and v variables which can be left uninitialized when you are  not
20       using textures.
21
22       Fields:
23
24       • x, y, z - Position of the vertex (float)
25
26       • u, v - Texture coordinates measured in pixels (float)
27
28       • color - ALLEGRO_COLOR(3) structure, storing the color of the vertex
29

SEE ALSO

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