.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "al_draw_vertex_buffer" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_draw_vertex_buffer - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include int al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer, ALLEGRO_BITMAP* texture, int start, int end, int type) \f[R] .fi .SH DESCRIPTION .PP Draws a subset of the passed vertex buffer. The vertex buffer must not be locked. Additionally, to draw onto memory bitmaps or with memory bitmap textures the vertex buffer must support reading (i.e.\ it must be created with the \f[C]ALLEGRO_PRIM_BUFFER_READWRITE\f[R]). .PP \f[I]Parameters:\f[R] .IP \[bu] 2 vertex_buffer - Vertex buffer to draw .IP \[bu] 2 texture - Texture to use, pass NULL to use only color shaded primitves .IP \[bu] 2 start - Start index of the subset of the vertex buffer to draw .IP \[bu] 2 end - One past the last index of the subset of the vertex buffer to draw .IP \[bu] 2 type - A member of the ALLEGRO_PRIM_TYPE(3alleg5) enumeration, specifying what kind of primitive to draw .PP \f[I]Returns:\f[R] Number of primitives drawn .SH SINCE .PP 5.1.3 .SH SEE ALSO .PP ALLEGRO_VERTEX_BUFFER(3alleg5), ALLEGRO_PRIM_TYPE(3alleg5)