1al_lock_vertex_buffer(3)                              al_lock_vertex_buffer(3)
2
3
4

NAME

6       al_lock_vertex_buffer - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              void* al_lock_vertex_buffer(ALLEGRO_VERTEX_BUFFER* buffer, int offset,
12                 int length, int flags)
13

DESCRIPTION

15       Locks  a vertex buffer so you can access its data.  Will return NULL if
16       the parameters are invalid, if reading is requested from a  write  only
17       buffer, or if the buffer is already locked.
18
19       Parameters:
20
21       · buffer - Vertex buffer to lock
22
23       · offset - Vertex index of the start of the locked range
24
25       · length - How many vertices to lock
26
27       · flags   -   ALLEGRO_LOCK_READONLY,  ALLEGRO_LOCK_WRITEONLY  or  ALLE‐
28         GRO_LOCK_READWRITE
29

SINCE

31       5.1.3
32

SEE ALSO

34       ALLEGRO_VERTEX_BUFFER(3), al_unlock_vertex_buffer(3)
35
36
37
38Allegro reference manual                              al_lock_vertex_buffer(3)
Impressum