al_draw_vertex_buffer - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro_primitives.h>

int al_draw_vertex_buffer(ALLEGRO_VERTEX_BUFFER* vertex_buffer,
   ALLEGRO_BITMAP* texture, int start, int end, int type)

Description

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 ALLEGRO_PRIM_BUFFER_READWRITE).

Parameters:

Returns: Number of primitives drawn

Since

5.1.3

See Also

ALLEGRO_VERTEX_BUFFER(3), ALLEGRO_PRIM_TYPE(3)

Info

Allegro reference manual