table of contents
other versions
- bookworm 2:4.4.3.1-3
- testing 2:4.4.3.1-4
- unstable 2:4.4.3.1-4.1
- experimental 2:4.4.3.1-4.1~exp2
register_datafile_object(3alleg4) | Allegro manual | register_datafile_object(3alleg4) |
NAME¶
register_datafile_object - Registers load/destroy functions for custom object types. Allegro game programming library.
SYNOPSIS¶
#include <allegro.h>
void register_datafile_object(int id, void *(*load)(PACKFILE *f, long size), void (*destroy)(void *data));
DESCRIPTION¶
Used to add custom object types, specifying functions to load and destroy objects of this type.
SEE ALSO¶
load_datafile(3alleg4), load_datafile_object(3alleg4), DAT_ID(3alleg4)
version 4.4.3 | Allegro |