1ALLEGRO_PRIM_BUFFER_FLAGS(3) ALLEGRO_PRIM_BUFFER_FLAGS(3)
2
3
4
6 ALLEGRO_PRIM_BUFFER_FLAGS - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 typedef enum ALLEGRO_PRIM_BUFFER_FLAGS
12
14 Flags to specify how to create a vertex or an index buffer.
15
16 · ALLEGRO_PRIM_BUFFER_STREAM - Hints to the driver that the buffer is
17 written to often, but used only a few times per frame
18
19 · ALLEGRO_PRIM_BUFFER_STATIC - Hints to the driver that the buffer is
20 written to once and is used often
21
22 · ALLEGRO_PRIM_BUFFER_DYNAMIC - Hints to the driver that the buffer is
23 written to often and is used often
24
25 · ALLEGRO_PRIM_BUFFER_READWRITE - Specifies that you want to be able
26 read from this buffer. By default this is disabled for performance.
27 Some platforms (like OpenGL ES) do not support reading from vertex
28 buffers, so if you pass this flag to al_create_vertex_buffer or
29 al_create_index_buffer the call will fail.
30
32 5.1.3
33
35 al_create_vertex_buffer(3), al_create_index_buffer(3)
36
37
38
39Allegro reference manual ALLEGRO_PRIM_BUFFER_FLAGS(3)