al_create_index_buffer(3)
π NAME π
al_create_index_buffer β Allegro 5 API.
Okay bestie, welcome to the al_create_index_buffer(3) page from the Library Functions Manual β yes, we're in Allegro 5 API territory, and this one's lowkey advanced. π«Ά
β¨ SYNOPSIS β¨
#include <allegro5/allegro_primitives.h>
ALLEGRO_INDEX_BUFFER* al_create_index_buffer(int index_size,
const void* initial_data, int num_indices, int flags)
π¦ DESCRIPTION π¦
So this function creates an index buffer. It can return NULL if the buffer could not be created (e.g. the system only supports write-only buffers). No cap.
β οΈ Note: This is an advanced feature, often unsupported on lower-end video cards. Be extra mindful of this function failing and make arrangements for fallback drawing functionality or a nice error message for users with such lower-end cards. This is important, fr fr.
π Parameters π
index_sizeβ Size of the index in bytes. Supported sizes are2for short integers and4for integers. slay.initial_dataβ Memory buffer to copy from to initialize the index buffer. Can beNULL, in which case the buffer is uninitialized.num_indicesβ Number of indices the buffer will hold.flagsβ A combination of theALLEGRO_PRIM_BUFFER_FLAGS(3)flags specifying how this buffer will be created. Passing0is the same as passingALLEGRO_PRIM_BUFFER_STATIC.
πΈ SINCE πΈ
Version 5.1.8 β iconic since then, periodt. β¨
π SEE ALSO π
Both are very much giving "check these next, bestie." π
mwah π β source/version: Allegro reference manual; date: not listed on the page, so we're leaving that mysterious. Byeee! π«Άπ
π¦ 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