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

NAME

6       al_draw_indexed_prim
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 buffer.  This function uses an
16       index array to specify which vertices to use.
17
18       Parameters:
19
20       · texture - Texture to use, pass 0 to use only shaded primitves
21
22       · vtxs - Pointer to an array of vertices
23
24       · decl - Pointer to a vertex declaration.  If set to 0,  the  vtxs  are
25         assumed to be of the ALLEGRO_VERTEX type
26
27       · indices - An array of indices into the vertex buffer
28
29       · num_vtx - Number of indices from the indices array you want to draw
30
31       · type - Primitive type to draw
32
33       Returns: Number of primitives drawn
34

SEE ALSO

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