al_draw_indexed_prim

int al_draw_indexed_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,
   ALLEGRO_BITMAP* texture, const int* indices, int num_vtx, int type)
Introduced in 5.0.0

Draws a subset of the passed vertex buffer. This function uses an index array to specify which vertices to use.

Parameters:

Returns: Number of primitives drawn

See also: ALLEGRO_VERTEX, ALLEGRO_PRIM_TYPE, ALLEGRO_VERTEX_DECL, al_draw_prim

Examples: ex_prim


Most helpful discussions:

Other recent discussions: