5 #include "bcresources.inc"
6 #include "bcwindowbase.inc"
21 // Set pointer to binary object containing images and contents.
22 // Immediately loads the contents from the object.
23 void set_data(unsigned char *ptr
);
25 VFrame
** new_button(char *overlay_path
,
29 VFrame
** new_button(char *overlay_path
,
33 VFrame
** new_toggle(char *overlay_path
,
38 char *checkedhi_path
);
39 VFrame
** new_toggle(char *overlay_path
,
47 // The two main routines for creating images are new_image_set and new_image.
48 // If the title already exists in the table, the existing entry is returned.
49 // These create image sets which are stored in the set table.
50 // Takes comma delimited char* pointers to filenames.
51 VFrame
** new_image_set(char *title
, int total
, va_list *args
);
52 VFrame
** new_image_set(char *title
, int total
, ...);
53 VFrame
** new_image_set(int total
, ...);
56 // Decompresses image and puts on images table before returning it.
57 VFrame
* new_image(char *title
, char *path
);
58 VFrame
* new_image(char *path
);
61 // These retrieve images based on case sensitive title
62 VFrame
* get_image(char *title
);
63 VFrame
** get_image_set(char *title
);
65 // Loads compressed data into temporary
66 unsigned char* get_image_data(char *title
);
68 // Verify all images have been used after initialization.
72 BC_Resources
* get_resources();
75 void overlay(VFrame
*dst
, VFrame
*src
, int in_x1
= -1, int in_x2
= -1);
80 // Decompressed image storage.
82 ArrayList
<BC_ThemeSet
*> image_sets
;
84 // Compressed images are loaded in here.
87 ArrayList
<char*> contents
;
88 ArrayList
<unsigned char*> pointers
;
91 unsigned char *last_pointer
;
97 // Set is_reference if the images are going to be created by new_image
98 BC_ThemeSet(int total
, int is_reference
, char *title
);