1al_draw_indexed_prim(3)                                al_draw_indexed_prim(3)
2
3
4

NAME

6       al_draw_indexed_prim - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              int al_draw_indexed_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,
12                 ALLEGRO_BITMAP* texture, const int* indices, int num_vtx, int type)
13

DESCRIPTION

15       Draws a subset of the passed vertex array.  This function uses an index
16       array to specify which vertices to use.
17
18       Parameters:
19
20       · texture - Texture to use, pass NULL to use only  color  shaded  prim‐
21         itves
22
23       · vtxs - Pointer to an array of vertices
24
25       · decl - Pointer to a vertex declaration.  If set to NULL, the vtxs are
26         assumed to be of the ALLEGRO_VERTEX type
27
28       · indices - An array of indices into the vertex array
29
30       · num_vtx - Number of indices from the indices array you want to draw
31
32       · type - A member of the ALLEGRO_PRIM_TYPE(3)  enumeration,  specifying
33         what kind of primitive to draw
34
35       Returns: Number of primitives drawn
36

SEE ALSO

38       ALLEGRO_VERTEX(3),     ALLEGRO_PRIM_TYPE(3),    ALLEGRO_VERTEX_DECL(3),
39       al_draw_prim(3)
40
41
42
43Allegro reference manual                               al_draw_indexed_prim(3)
Impressum