fifi.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef fifi_H_INCLUDED
  2. #define fifi_H_INCLUDED
  3. /** FifiSimpleLoader is a generic loading function. Handy to redirect
  4. loading of files over fifi. */
  5. typedef void * (FifiSimpleLoader)(const char * filename);
  6. /* For cases when just the vpath isn't enough */
  7. typedef void * (FifiLoader)(void * extra, const char * filename);
  8. ALLEGRO_BITMAP *fifi_load_bitmap(const char *vpath);
  9. ALLEGRO_BITMAP *fifi_load_bitmap_flags(const char *vpath,int flags);
  10. ALLEGRO_SAMPLE *fifi_load_sample(const char *vpath);
  11. ALLEGRO_AUDIO_STREAM *fifi_load_audio_stream(const char *vpath,size_t buffer_count,int samples);
  12. ALLEGRO_FONT *fifi_load_bitmap_font(const char *vpath);
  13. ALLEGRO_FONT *fifi_load_bitmap_font_flags(const char *vpath,int flags);
  14. ALLEGRO_FONT *fifi_load_ttf_font(const char *vpath,int h,int flags);
  15. ALLEGRO_FONT *fifi_load_ttf_font_stretch(const char *vpath,int w,int h,int flags);
  16. ALLEGRO_PATH *fifi_tileset_filename(const char *name);
  17. ALLEGRO_AUDIO_STREAM *fifi_loadaudiostream(const char *filename,size_t buffer_count,unsigned int samples);
  18. ALLEGRO_BITMAP *fifi_loadbitmap_vpath(const char *vpath);
  19. ALLEGRO_BITMAP *fifi_loadbitmap(const char *filename,...);
  20. ALLEGRO_BITMAP *fifi_loadbitmap_va(const char *filename,va_list args);
  21. ALLEGRO_FONT *fifi_loadfont(const char *filename,int size,int flags);
  22. void *fifi_loadsimple(FifiSimpleLoader *load,const char *filename,...);
  23. void *fifi_loadsimple_va(FifiSimpleLoader *load,const char *filename,va_list args);
  24. void *fifi_loadsimple_vpath(FifiSimpleLoader *load,const char *vpath);
  25. void *fifi_load_vpath(FifiLoader *load,void *extra,const char *vpath);
  26. void fifi_data_vpath_print(const char *vpath);
  27. ALLEGRO_PATH *fifi_data_pathargs(const char *filename,...);
  28. ALLEGRO_PATH *fifi_data_pathva(const char *filename,va_list args);
  29. ALLEGRO_PATH *fifi_data_vpath(const char *vpath);
  30. const char *fifi_data_path_cstr(void);
  31. ALLEGRO_PATH *fifi_data_path(void);
  32. ALLEGRO_PATH *fifi_init(void);
  33. ALLEGRO_PATH *fifi_make_data_path(void);
  34. extern ALLEGRO_PATH *fifi_data_path_;
  35. int fifi_path_exists(Path *path);
  36. const char *fifi_path_cstr(Path *path);
  37. #endif