1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
.TH "al_draw_vertex_buffer" "3" "" "Allegro reference manual" ""
.SH NAME
.PP
al_draw_vertex_buffer \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro_primitives.h>
int\ al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER*\ vertex_buffer,
\ \ \ ALLEGRO_BITMAP*\ texture,\ int\ start,\ int\ end,\ int\ type)
\f[]
.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[]).
.PP
\f[I]Parameters:\f[]
.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(3) enumeration, specifying
what kind of primitive to draw
.PP
\f[I]Returns:\f[] Number of primitives drawn
.SH SINCE
.PP
5.1.3
.SH SEE ALSO
.PP
ALLEGRO_VERTEX_BUFFER(3), ALLEGRO_PRIM_TYPE(3)
|