14 #include "../include/tscope5/primitives_internal.h"
15 #include "../include/tscope5/system_internal.h"
17 #include <allegro5/allegro_primitives.h>
36 ts5_log(TS5_LOGLEVEL_6,
"%s: ts5_check_primitives\n", calling_function);
42 if (!_ts5_data.target) {
43 ts5_fatal(
"%s: no drawing target specified\n", calling_function);
65 ts5_log(TS5_LOGLEVEL_1,
"%s: Installing Tscope5 primitives\n",
68 if (!al_init_primitives_addon()) {
69 ts5_fatal(
"%s: could not install Tscope5 primitives\n",
87 ts5_log(TS5_LOGLEVEL_1,
"Uninstalling Tscope5 primitives\n");
int _ts5_is_tscope5_installed
Is Tscope5 installed?
void ts5_check_primitives(char *calling_function)
Do some checks at the start of each primitives function.
void ts5_install_primitives(char *calling_function)
Install the primitives drawing subsystem.
void ts5_uninstall_primitives()
Uninstall the primitives drawing subsystem.
int _ts5_is_primitives_installed
Is the primitives subsystem installed?
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_fatal(const char *format,...)
Exit safely with an error message.