al_create_vertex_buffer - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro_primitives.h>

ALLEGRO_VERTEX_BUFFER* al_create_vertex_buffer(ALLEGRO_VERTEX_DECL* decl,
   const void* initial_data, int num_vertices, int flags)

Description

Creates a vertex 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:

Since

5.1.3

See Also

ALLEGRO_VERTEX_BUFFER(3), al_destroy_vertex_buffer(3)

Referenced By

al_destroy_vertex_buffer(3), ALLEGRO_PRIM_BUFFER_FLAGS(3), ALLEGRO_VERTEX_BUFFER(3).

Allegro reference manual