.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "ALLEGRO_VERTEX" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP ALLEGRO_VERTEX - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include typedef struct ALLEGRO_VERTEX ALLEGRO_VERTEX; \f[R] .fi .SH DESCRIPTION .PP 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\[cq]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. .PP \f[I]Fields:\f[R] .IP \[bu] 2 x, y, z - Position of the vertex (float) .IP \[bu] 2 u, v - Texture coordinates measured in pixels (float) .IP \[bu] 2 color - ALLEGRO_COLOR(3alleg5) structure, storing the color of the vertex .SH SEE ALSO .PP ALLEGRO_PRIM_ATTR(3alleg5)