File: ALLEGRO_VERTEX.3

package info (click to toggle)
allegro5 2%3A5.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 14,856 kB
  • ctags: 15,948
  • sloc: ansic: 87,540; cpp: 9,693; objc: 3,491; python: 2,057; sh: 829; makefile: 93; perl: 37; pascal: 24
file content (35 lines) | stat: -rw-r--r-- 949 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.TH ALLEGRO_VERTEX 3 "" "Allegro reference manual"
.SH NAME
.PP
ALLEGRO_VERTEX \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro_primitives.h>

typedef\ struct\ ALLEGRO_VERTEX\ ALLEGRO_VERTEX;
\f[]
.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 when you must initialize all members of this struct when
you\[aq]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[]
.IP \[bu] 2
x, y, z \- Position of the vertex (float)
.IP \[bu] 2
color \- ALLEGRO_COLOR(3) structure, storing the color of the vertex
.IP \[bu] 2
u, v \- Texture coordinates measured in pixels (float)
.SH SEE ALSO
.PP
ALLEGRO_PRIM_ATTR(3)