al_draw_vertex_buffer(3)
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; passNULLto use only color-shaded primitives β¨startβ start index of the subset of the vertex buffer to drawendβ one past the last index of the subset of the vertex buffer to drawtypeβ a member of theALLEGRO_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 π
- also bestie:
ALLEGRO_VERTEX_BUFFER(3) - and also bestie:
ALLEGRO_PRIM_TYPE(3)
πΈ 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