al_create_index_buffer(3alleg5) | al_create_index_buffer(3alleg5) |
al_create_index_buffer - Allegro 5 API
#include <allegro5/allegro_primitives.h> ALLEGRO_INDEX_BUFFER* al_create_index_buffer(int index_size,
const void* initial_data, int num_indices, int flags)
Creates a index buffer. Can return NULL if the buffer could not be created (e.g. the system only supports write-only buffers).
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.
Parameters:
5.1.8
ALLEGRO_INDEX_BUFFER(3alleg5), al_destroy_index_buffer(3alleg5)
Allegro reference manual |