al_draw_indexed_prim(3)
π NAME π
al_draw_indexed_prim β Allegro 5 API
okay so this page is from the Library Functions Manual and it's giving Allegro 5 API realness, bestie β¨
β¨ SYNOPSIS β¨
#include <allegro5/allegro_primitives.h>
int al_draw_indexed_prim(const void* vtxs, const ALLEGRO_VERTEX_DECL* decl,
ALLEGRO_BITMAP* texture, const int* indices, int num_vtx, int type)
π¦ DESCRIPTION π¦
Here's the whole vibe: al_draw_indexed_prim draws a subset of the passed vertex array. It uses an index array to specify which vertices to use. lowkey iconic, highkey useful π
π Parameters: π
textureβ texture to use, passNULLto use only color shaded primitves. πvtxsβ pointer to an array of vertices.declβ pointer to a vertex declaration. If set toNULL, thevtxsare assumed to be of theALLEGRO_VERTEXtype.indicesβ an array of indices into the vertex array.num_vtxβ number of indices from theindicesarray you want to draw.typeβ a member of theALLEGRO_PRIM_TYPE(3)enumeration, specifying what kind of primitive to draw.
Returns: Number of primitives drawn. periodt. π₯
π SEE ALSO π
That's the page, bestie β signing off from the Allegro reference manual with al_draw_indexed_prim(3) on the label. mwah ππ«Ά
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms