1al_create_index_buffer(3)                            al_create_index_buffer(3)
2
3
4

NAME

6       al_create_index_buffer - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              ALLEGRO_INDEX_BUFFER* al_create_index_buffer(int index_size,
12                  const void* initial_data, int num_indices, int flags)
13

DESCRIPTION

15       Creates  a  index  buffer.   Can return NULL if the buffer could not be
16       created (e.g. the system only supports write-only buffers).
17
18              Note:
19
20              This is an advanced  feature,  often  unsupported  on  lower-end
21              video cards.  Be extra mindful of this function failing and make
22              arrangements for fallback drawing functionality or a nice  error
23              message for users with such lower-end cards.
24
25       Parameters:
26
27       • index_size  -  Size of the index in bytes.  Supported sizes are 2 for
28         short integers and 4 for integers
29
30       • initial_data - Memory buffer to copy from  to  initialize  the  index
31         buffer.  Can be NULL, in which case the buffer is uninitialized.
32
33       • num_indices - Number of indices the buffer will hold
34
35       • flags - A combination of the ALLEGRO_PRIM_BUFFER_FLAGS(3) flags spec‐
36         ifying how this buffer will be created.  Passing 0  is  the  same  as
37         passing ALLEGRO_PRIM_BUFFER_STATIC.
38

SINCE

40       5.1.8
41

SEE ALSO

43       ALLEGRO_INDEX_BUFFER(3), al_destroy_index_buffer(3)
44
45
46
47Allegro reference manual                             al_create_index_buffer(3)
Impressum