15 #include "../include/tscope5/bitmaps_internal.h"
16 #include "../include/tscope5/system_internal.h"
18 #include <allegro5/allegro_image.h>
35 ts5_log(TS5_LOGLEVEL_6,
"%s: ts5_check_bitmaps\n", calling_function);
56 ts5_log(TS5_LOGLEVEL_6,
"%s: ts5_check_bitmaps2\n", calling_function);
58 if (!_ts5_data.target) {
59 ts5_fatal(
"%s: no drawing target specified\n", calling_function);
63 ts5_fatal(
"%s: bitmap pointer is null\n", calling_function);
66 if (_ts5_data.target == map) {
67 ts5_fatal(
"%s: source and target are the same\n", calling_function);
89 ts5_log(TS5_LOGLEVEL_1,
"%s: Installing Tscope5 bitmaps\n",
92 if (!al_init_image_addon()) {
93 ts5_fatal(
"%s: could not install Tscope5 bitmaps\n",
111 ts5_log(TS5_LOGLEVEL_1,
"Uninstalling Tscope5 bitmaps\n");
112 al_shutdown_image_addon();
int _ts5_is_tscope5_installed
Is Tscope5 installed?
void ts5_install_bitmaps(char *calling_function)
Install the bitmaps subsystem.
void ts5_check_bitmaps(char *calling_function)
Do some checks at the start of each bitmap function.
void ts5_log(const unsigned int level, const char *format,...)
Send info to a logging window.
void ts5_install_tscope5(char *calling_function)
Install Tscope5.
void ts5_check_bitmaps2(char *calling_function, TS5_BITMAP *map)
Do some checks at the start of each bitmap function.
void ts5_uninstall_bitmaps()
Close the bitmaps subsystem.
int _ts5_is_bitmaps_installed
Is the bitmaps subsystem installed?
void ts5_fatal(const char *format,...)
Exit safely with an error message.