1al_draw_vertex_buffer(3) al_draw_vertex_buffer(3)
2
3
4
6 al_draw_vertex_buffer - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 int al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer,
12 ALLEGRO_BITMAP* texture, int start, int end, int type)
13
15 Draws a subset of the passed vertex buffer. The vertex buffer must not
16 be locked. Additionally, to draw onto memory bitmaps or with memory
17 bitmap textures the vertex buffer must support reading (i.e. it must
18 be created with the ALLEGRO_PRIM_BUFFER_READWRITE).
19
20 Parameters:
21
22 • vertex_buffer - Vertex buffer to draw
23
24 • texture - Texture to use, pass NULL to use only color shaded prim‐
25 itves
26
27 • start - Start index of the subset of the vertex buffer to draw
28
29 • end - One past the last index of the subset of the vertex buffer to
30 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
38 5.1.3
39
41 ALLEGRO_VERTEX_BUFFER(3), ALLEGRO_PRIM_TYPE(3)
42
43
44
45Allegro reference manual al_draw_vertex_buffer(3)