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

NAME

6       ALLEGRO_PRIM_ATTR
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              typedef enum ALLEGRO_PRIM_ATTR
12

DESCRIPTION

14       Enumerates  the  types  of  vertex  attributes that a custom vertex may
15       have.
16
17       · ALLEGRO_PRIM_POSITION - Position information, can be  stored  in  any
18         supported fashion
19
20       · ALLEGRO_PRIM_COLOR_ATTR  -  Color  information,  stored  in  an ALLE‐
21         GRO_COLOR(3).  The storage field of ALLEGRO_VERTEX_ELEMENT is ignored
22
23       · ALLEGRO_PRIM_TEX_COORD  -  Texture  coordinate  information,  can  be
24         stored  only in ALLEGRO_PRIM_FLOAT_2 and ALLEGRO_PRIM_SHORT_2.  These
25         coordinates are normalized by the width and height  of  the  texture,
26         meaning  that  the bottom-right corner has texture coordinates of (1,
27         1).
28
29       · ALLEGRO_PRIM_TEX_COORD_PIXEL - Texture coordinate information, can be
30         stored  only in ALLEGRO_PRIM_FLOAT_2 and ALLEGRO_PRIM_SHORT_2.  These
31         coordinates are measured in pixels.
32

SEE ALSO

34       ALLEGRO_VERTEX_DECL(3), ALLEGRO_PRIM_STORAGE(3)
35
36
37
38Allegro reference manual                                  ALLEGRO_PRIM_ATTR(3)
Impressum