store_proto.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* src/store.c */
  2. _Bool store_init(void);
  3. _Bool store_index_ok(int index);
  4. int store_max(void);
  5. Resor *store_get(int index);
  6. _Bool store_drop(int index);
  7. Resor *store_put(int index, Resor *value);
  8. _Bool store_done(void);
  9. Resor *store_load_ttf_font_stretch(int index, const char *vpath, int w, int h, int f);
  10. Resor *store_load_ttf_font(int index, const char *vpath, int h, int f);
  11. Resor *store_load_bitmap_font_flags(int index, const char *vpath, int f);
  12. Resor *store_load_bitmap_font(int index, const char *vpath);
  13. Resor *store_grab_font_from_resor(int index, Resor *resor, int count, int ranges[]);
  14. Resor *store_grab_font(int index, int bmp_index, int count, int ranges[]);
  15. Resor *store_load_audio_stream(int index, const char *vpath, size_t buffer_count, int samples);
  16. Resor *store_load_sample(int index, const char *vpath);
  17. Resor *store_load_bitmap_flags(int index, const char *vpath, int flags);
  18. Resor *store_load_bitmap(int index, const char *vpath);
  19. Resor *store_load_other(int index, const char *vpath, ResorKind kind, ResorLoader *loader, ResorDestructor *destroy, void *extra);
  20. Resor *store_load_tilemap(int index, const char *vpath);
  21. int store_kind(int index);
  22. ALLEGRO_FONT *store_get_font(int index);
  23. ALLEGRO_BITMAP *store_get_bitmap(int index);
  24. ALLEGRO_SAMPLE *store_get_sample(int index);
  25. ALLEGRO_AUDIO_STREAM *store_get_audio_stream(int index);
  26. void *store_get_other(int index, unsigned kind);
  27. _Bool store_get_bitmap_format(int index, int *value);
  28. _Bool store_get_bitmap_flags(int index, int *value);
  29. _Bool store_get_bitmap_height(int index, int *value);
  30. _Bool store_get_bitmap_width(int index, int *value);
  31. _Bool store_get_ustr_dimensions(int index, ALLEGRO_USTR *text, Rebox *value);
  32. _Bool store_get_ustr_width(int index, ALLEGRO_USTR *text, int *value);
  33. _Bool store_get_text_dimensions(int index, char *text, Rebox *value);
  34. _Bool store_get_text_width(int index, char *text, int *value);
  35. _Bool store_get_font_ascent(int index, int *value);
  36. _Bool store_get_font_descent(int index, int *value);
  37. _Bool store_get_font_line_height(int index, int *value);
  38. int store_get_unused_id(int minimum);
  39. int store_load_ttf_font_stretch_id(int min, const char *vpath, int w, int h, int f);
  40. int store_load_ttf_font_id(int min, const char *vpath, int h, int f);
  41. int store_load_bitmap_font_flags_id(int min, const char *vpath, int f);
  42. int store_load_bitmap_font_id(int min, const char *vpath);
  43. int store_grab_font_id(int min, int from, int count, int ranges[]);
  44. int store_load_audio_stream_id(int min, const char *vpath, size_t buffer_count, int samples);
  45. int store_load_sample_id(int min, const char *vpath);
  46. int store_load_bitmap_flags_id(int min, const char *vpath, int flags);
  47. int store_load_bitmap_id(int min, const char *vpath);
  48. int store_load_other_id(int min, const char *vpath, ResorKind kind, ResorLoader *loader, ResorDestructor *destroy, void *extra);
  49. int store_load_tilemap_id(int min, const char *vpath);