al_draw_indexed_prim(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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, pass NULL to use only color shaded primitves. πŸ“
  • vtxs β€” pointer to an array of vertices.
  • decl β€” pointer to a vertex declaration. If set to NULL, the vtxs are assumed to be of the ALLEGRO_VERTEX type.
  • indices β€” an array of indices into the vertex array.
  • num_vtx β€” number of indices from the indices array you want to draw.
  • type β€” a member of the ALLEGRO_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