1al_draw_indexed_buffer(3)                            al_draw_indexed_buffer(3)
2
3
4

NAME

6       al_draw_indexed_buffer - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              int al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer,
12                 ALLEGRO_BITMAP* texture, ALLEGRO_INDEX_BUFFER* index_buffer,
13                 int start, int end, int type)
14

DESCRIPTION

16       Draws  a  subset  of  the  passed vertex buffer.  This function uses an
17       index buffer to specify which vertices to use.  Both buffers  must  not
18       be  locked.   Additionally,  to draw onto memory bitmaps or with memory
19       bitmap textures both buffers must support reading (i.e.  they  must  be
20       created with the ALLEGRO_PRIM_BUFFER_READWRITE).
21
22       Parameters:
23
24       · vertex_buffer - Vertex buffer to draw
25
26       · texture  -  Texture  to use, pass NULL to use only color shaded prim‐
27         itves
28
29       · index_buffer - Index buffer to use
30
31       · start - Start index of the subset of the vertex buffer to draw
32
33       · end - One past the last index of the subset of the vertex  buffer  to
34         draw
35
36       · type  -  A member of the ALLEGRO_PRIM_TYPE(3) enumeration, specifying
37         what kind of primitive to draw.  Note that ALLEGRO_PRIM_LINE_LOOP and
38         ALLEGRO_PRIM_POINT_LIST are not supported.
39
40       Returns: Number of primitives drawn
41

SINCE

43       5.1.8
44

SEE ALSO

46       ALLEGRO_VERTEX_BUFFER(3), ALLEGRO_INDEX_BUFFER(3), ALLEGRO_PRIM_TYPE(3)
47
48
49
50Allegro reference manual                             al_draw_indexed_buffer(3)
Impressum