al_draw_vertex_buffer(3)

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

okay bestie, welcome to the al_draw_vertex_buffer(3) page from the Library Functions Manual β€” Allegro 5 API edition πŸ’–. This is the function that draws a subset of a vertex buffer, and yes, there are rules. Let's get into it ✨.

🌸 NAME 🌸

al_draw_vertex_buffer β€” the Allegro 5 API function for drawing a subset of a passed vertex buffer. Iconic, focused, does one job πŸ’….

✨ 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 πŸ’–

This draws a subset of the vertex buffer you pass in 🫢. Two big vibe checks before you go there:

  • The vertex buffer must not be locked πŸ”’πŸš«.
  • Also, 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 🧚

  • vertex_buffer β€” vertex buffer to draw πŸ’…
  • texture β€” texture to use; pass NULL to use only color-shaded primitives ✨
  • start β€” start index of the subset of the vertex buffer to draw
  • end β€” one past the last index of the subset of the vertex buffer to draw
  • type β€” a member of the ALLEGRO_PRIM_TYPE(3) enumeration, specifying what kind of primitive to draw

πŸ‘‘ Returns πŸ‘‘

Returns: Number of primitives drawn ✨.

πŸ¦‹ SINCE πŸ¦‹

5.1.3 β€” yes, she's been serving since then πŸ’œ.

πŸŽ€ SEE ALSO πŸŽ€

🌸 that's a wrap! source/version: Allegro reference manual Β· page: al_draw_vertex_buffer(3) Β· date: this footer doesn't print one, so I'm not inventing a date, bestie πŸ’…πŸŒΈ

πŸ“¦ 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