![]() |
![]()
| ![]() |
![]()
NAMEALLEGRO_FILE_INTERFACE - Allegro 5 APISYNOPSIS
DESCRIPTIONA structure containing function pointers to handle a type of “file”, real or virtual. See the full discussion in al_set_new_file_interface(3).The fields are:
The fi_open function must allocate memory for whatever userdata structure it needs. The pointer to that memory must be returned; it will then be associated with the file. The other functions can access that data by calling al_get_file_userdata(3) on the file handle. If fi_open returns NULL then al_fopen(3) will also return NULL. The fi_fclose function must clean up and free the userdata, but Allegro will free the ALLEGRO_FILE(3) handle. If fi_fungetc is NULL, then Allegro’s default implementation of a 16 char long buffer will be used.
|