al_create_index_buffer(3)

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

πŸ’– 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 are 2 for short integers and 4 for integers. slay.
  • initial_data β€” Memory buffer to copy from to initialize the index buffer. Can be NULL, in which case the buffer is uninitialized.
  • num_indices β€” Number of indices the buffer will hold.
  • flags β€” A combination of the ALLEGRO_PRIM_BUFFER_FLAGS(3) flags specifying how this buffer will be created. Passing 0 is the same as passing ALLEGRO_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