.\" Automatically generated by Pandoc 2.9.2.1 .\" .TH "al_draw_indexed_buffer" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_draw_indexed_buffer - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include int al_draw_indexed_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer, ALLEGRO_BITMAP* texture, ALLEGRO_INDEX_BUFFER* index_buffer, int start, int end, int type) \f[R] .fi .SH DESCRIPTION .PP Draws a subset of the passed vertex buffer. This function uses an index buffer to specify which vertices to use. Both buffers must not be locked. Additionally, to draw onto memory bitmaps or with memory bitmap textures both buffers must support reading (i.e.\ they 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 index_buffer - Index buffer to use .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. Note that ALLEGRO_PRIM_LINE_LOOP and ALLEGRO_PRIM_POINT_LIST are not supported. .PP \f[I]Returns:\f[R] Number of primitives drawn .SH SINCE .PP 5.1.8 .SH SEE ALSO .PP ALLEGRO_VERTEX_BUFFER(3alleg5), ALLEGRO_INDEX_BUFFER(3alleg5), ALLEGRO_PRIM_TYPE(3alleg5)