5 #include "bcresources.inc"
6 #include "bcwindowbase.inc"
21 // Must set path of resource file before loading first image.
22 // Path defaults to executable path.
23 void set_path(char *path
);
25 // Reverts the path to the executable path. Useful for base classes
26 // which need to fill unset images with defaults after they've been created.
29 VFrame
** new_button(char *overlay_path
,
33 VFrame
** new_button(char *overlay_path
,
37 VFrame
** new_toggle(char *overlay_path
,
42 char *checkedhi_path
);
43 VFrame
** new_toggle(char *overlay_path
,
51 // The two main routines for creating images are new_image_set and new_image.
52 // If the title already exists in the table, the existing entry is returned.
53 // These create image sets which are stored in the set table.
54 // Takes comma delimited char* pointers to filenames.
55 VFrame
** new_image_set(char *title
, int total
, va_list *args
);
56 VFrame
** new_image_set(char *title
, int total
, ...);
57 VFrame
** new_image_set(int total
, ...);
60 // Decompresses image and puts on images table before returning it.
61 VFrame
* new_image(char *title
, char *path
);
62 VFrame
* new_image(char *path
);
65 // These retrieve images based on case sensitive title
66 VFrame
* get_image(char *title
);
67 VFrame
** get_image_set(char *title
);
69 // Loads compressed data into temporary
70 unsigned char* get_image_data(char *title
);
72 // Verify all images have been used after initialization.
76 BC_Resources
* get_resources();
79 void overlay(VFrame
*dst
, VFrame
*src
, int in_x1
= -1, int in_x2
= -1);
84 // Decompressed image storage.
86 ArrayList
<BC_ThemeSet
*> image_sets
;
88 char default_path
[BCTEXTLEN
];
90 // Compressed images are loaded in here.
92 char *contents_buffer
;
93 ArrayList
<char*> contents
;
94 ArrayList
<int> offsets
;
103 // Set is_reference if the images are going to be created by new_image
104 BC_ThemeSet(int total
, int is_reference
, char *title
);